------- Comment #11 from paolo dot carlini at oracle dot com 2008-07-23 01:16 ------- Thanks. Actually, I think the experiment would be more meaningful if you could put also the equivalent of your main (a calling function, that is) inside the header, because in your testcase the warning is triggered inside the main, not in foo.
If you can, in your spare time, of course. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36902