Possibly related to BUG 39799 The attached very simple test case does not produce any warning on build, using '-W -Wall -Wextra -O3 -Wuninitialized -Werror'.
If the condition is not seen as false at build time, the compiler does not complaint. -- Summary: Trivial uninitialized variable not spotted Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: roche+gccbugs at exalead dot com GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42724