ignore maybe-initialized warning in map_caster::convert_elements field conv#6030
Conversation
|
Written with the help of Cursor GPT-5.4 Extra High Fast: I tried fairly hard locally to reproduce this before reviewing the warning suppression, using I was able to trigger other And that matters here because otherwise we’re guessing about both the root cause and the best fix. Without the exact failing instantiation, it is hard to tell whether this pragma is really the narrowest fix, whether a small code change could avoid the warning, or whether the warning is even coming from the function described in the PR. Could you please share:
One more small point: the PR title/description says |
In
map_caster::convert_elements,convis initialized with a call to::load, and GCC 13 sees that as a maybe-uninitialized error to call it later:By adding ignores around this area, we can avoid the compilation failure.