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: geos-devel@…
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 pramsey, 3 years ago

This option is new to GCC in version 8. It's been in clang for a while.

comment:2 by gdt, 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:3 by Paul Ramsey <pramsey@…>, 3 years ago

In 72b58fe/git:

Only use no-unknown-warning-option for Clang builds right now. References #1105

comment:4 by pramsey, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.