Doesn't do that for me - what GCC ver and environment. Very odd! Digging in docs. Thanks for info.
But this is a such commonly-recognized pitfall that I actually don't know a single modern production compiler that does not generate this warning.
(edit) Just checked 4.7.1 and it generates the warning.