Change "-Wmaybe-uninitialized" to warning

This commit is contained in:
Guojie Luo 2022-12-23 07:57:49 +00:00
parent be84cd1e7e
commit 0452007acc
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ bool complexity_limitert::are_loop_children_too_complicated(
// complicated, we make sure we don't execute it the other 17 times. But as
// soon as we're running the loop again via a different context it gets a
// chance to redeem itself.
#pragma GCC diagnostic warning "-Wmaybe-uninitialized"
optionalt<std::reference_wrapper<lexical_loopst::loopt>> loop_to_blacklist;
for(auto frame_iter = current_call_stack.rbegin();
frame_iter != current_call_stack.rend();