http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50997
--- Comment #3 from Fredrik Hederstierna <fredrik.hederstie...@securitas-direct.com> 2011-11-07 21:11:13 UTC --- Ok, answer to myself. I found the patch: http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00169.html I think the patch is very unfortunate, if I knew I should have objected. It's much better to keep warnings for -O0 level only. I'm thinking of suggesting a patch to restore this warning. /Fredrik