Opened 3 years ago
Closed 3 years ago
#1105 closed defect (fixed)
unrecognized command line option ‘-Wno-unknown-warning-option’
Reported by: | strk | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 3.10.0 |
Component: | Build/Install (cmake) | Version: | main |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
Compiler used: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Source commit hash: b4a786c910080d716cbf8c1230eada9077f118c2
Change History (4)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
I have run into this with other projects. Basically, configure.ac ( :-) ) has to check each compiler option to see if it's really ok before adding it to CFLAGS. And, because one often wants -Werror, you have to add in -Werror first so that -Wfoo will fail compilation instead of giving a warning and being judged acceptable. And, if you don't want -Werror, I think one has to capture stderr, or use -Werror on the test calls.
comment:4 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This option is new to GCC in version 8. It's been in clang for a while.