The 4.x compilers does not warn when using unset variables. The 3.x compilers did warn on this:
Example: int use_unset_variable(int y) { int x; switch(y) { case 0: x = 0; break; default: break; } x++; return x; } Variable x could be unset when returning. I use all warnings possible: -Wall -W -Wextra Best Regards Fredrik -- Summary: No warning when using unset variable Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fredrik at hederstierna dot com GCC build triplet: arm-elf-gcc GCC host triplet: x86-intel GCC target triplet: arm-elf-gcc http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38945