http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46657
schuh.robert at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|DUPLICATE |INVALID --- Comment #5 from schuh.robert at gmail dot com 2010-11-25 11:30:12 UTC --- Thanks for comments, guys. Yes, I agree that the compiler should warn me about it with or without -Wall, -O2, etc. I tested both version of gcc (4.4.5 and 4.5.1) with -Wall and -O2, and it did indeed printed warning messages.