Add a __nowarn__ keyword
Manuel López-Ibáñez
lopezibanez@gmail.com
Wed Aug 8 08:52:00 GMT 2007
I am not sure whether this is a good idea since we already have the
#pragma GCC diagnostics. But yes, the pragma does not work (yet) at
the statement level. Also, do any other compilers have a similar
thing? What keyword do they use? Perhaps, we could use it internally
for GCC 4.3 in order to test it but don't expose it as a new feature
until GCC 4.4 is in stage1 to allow users to play with it.
About the patch itself, I don't understand why you use one approach
for the C parser and a different one for the C++ parser. I think it
would be advantageous to use the same approach even if you cannot
share the relevant functions. I prefer the cp_parser_nowarn_opt
approach: the resulting code looks simpler.
Also, the patch needs testcases. And a follow-up for GCC 4.3 webpage
if we want to expose this to users.
Cheers,
Manuel.
More information about the Gcc-patches
mailing list