[JSON] Fix uninitialized variable warning
Fix uninitialized variable warning when deserializing a std::optional<E>
where is an enum type.
JSON.h:771:20: warning: variable 'Result' is uninitialized when used here [-Wuninitialized]
if (!fromJSON(E, Result, P))
^~~~~~
parent
de5f96e9
Please register or sign in to comment