https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178

--- Comment #7 from Leon Winter <winter-...@bfw-online.de> ---
> #pragma GCC diagnostic ignored "-Wuninitialized"
> 
> is your friend.

We do like this warning and threat it as an error as such situations normally
are a mistake which could lead to errors later on this switching it off - even
temporarily - is very much undesired.
Maybe a better solution is to hint the compiler that the loop body will be run
at least once. A do-while seems to imply that (and the compiler does not print
a warning).

Reply via email to