Why don't recently added -Wexceptions and -Winvalid-imported-macros use "Warning" flag?
Vadim Zeitlin
vz-gcc@zeitlins.org
Thu May 13 21:33:13 GMT 2021
Hello,
While running my script[1] parsing gcc/c-family/c.opt to extract
information about the new warnings for C++ programs, I've noticed that a
couple of new warnings in gcc 11 don't use the "Warning" flag which, I had
assumed, would be used for all warnings (with a couple of historical
exceptions). Was this assumption wrong, or could this have been an
oversight, i.e. should this flag be added to these warning too?
For the reference, the commits adding the warning were:
- 1d87302a8e2 (c++: Add -Wexceptions warning option [PR97675], 2020-11-03)
- 10ee6da64c5 (C++ Module options, 2020-12-01)
Thanks in advance,
VZ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20210513/8562aa97/attachment.sig>
More information about the Gcc
mailing list