------- Comment #2 from manu at gcc dot gnu dot org  2009-08-07 13:07 -------
This is because neither Werror= nor #pragma GCC diagnositcs work with "group
flags", that is, flags that enable other flags. 

Until this is fixed, you need to give exactly the flag reported by
-fdiagnostics-show-option, so in your case it would be:

-Werror=implicit-function-declaration

if none is reported that is also a bug, so open another PR.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-07 13:07:11
               date|                            |
            Summary|-Werror=implicit does not   |-Werror= and #pragma
                   |enable -Wimplicit           |diagnostics do not work with
                   |                            |group flags


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40989

Reply via email to