This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/37187] please provide a way to treat -pedantic as warning when using -Werror


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

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Target|x86_64-linux-gnu            |
               Host|x86_64-linux-gnu            |
              Build|x86_64-linux-gnu            |

--- Comment #6 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-04-22 20:03:11 UTC ---
In GCC 4.8, you can use -Wno-error=pedantic for any warning that prints
-Wpedantic. However, the testcase here does not because of a bug. I will try to
fix the bug, but this part of the C FE is quite complex (and it looks
ancient...)

-pedantic changes something in a global variable and later the pedwarn is
conditional on this global variable, so depending on the testcase, the pedwarn
may be conditional or not on -pedantic (without passing the correct OPT_
value). Not fun.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]