Make static analyzer happy

This commit is contained in:
rexy712 2020-04-06 15:09:49 -07:00
parent 7b643ff5c6
commit fd09eb3b20

View File

@ -34,7 +34,7 @@ int main(){
rjp::array root = initialize_array(NUM_ELEMENTS); rjp::array root = initialize_array(NUM_ELEMENTS);
for(auto&& val : root){ for(auto&& val : root){
RJP_data_type d; RJP_data_type d = rjp_json_null;
rjp::dispatch(rjp::dispatcher{ rjp::dispatch(rjp::dispatcher{
[&d](const rjp::integer&){d = rjp_json_integer;}, [&d](const rjp::integer&){d = rjp_json_integer;},
[&d](const rjp::boolean&){d = rjp_json_boolean;}, [&d](const rjp::boolean&){d = rjp_json_boolean;},