[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-05-04 Thread ldionne.2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 --- Comment #4 from Louis Dionne --- Thanks for your replies, all. We resolved the problem on our side by not trying to workaround the lack of error, which means that we might end up passing `-Wno-foo` to GCC when it's not supported. I think

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 Richard Biener changed: What|Removed |Added Resolution|--- |WONTFIX Status|UNCONFIRMED

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 --- Comment #2 from Jonathan Wakely --- (In reply to Louis Dionne from comment #0) > This makes detecting whether GCC supports a given warning flag very > challenging in build systems. You're doing it wrong then. Try 'g++ -Q --help=warnings'

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 --- Comment #1 from Jonathan Wakely --- This is by design. It means that makefiles written for different versions of GCC do not trigger spurious diagnostics. If somebody says "I don't want warnings about cat noises" and their version of GCC