1
0
Fork 0

Replace deprecated -W with explicit -Wextra

`-W` looks odd in build logs, I thought it was a missing warning option...
Turns out this has long been superseeded by `-Wexta`, so use that.
This commit is contained in:
Klemens Nanni 2022-03-06 22:13:07 +01:00 committed by John Preston
parent aa71b768bd
commit 205f90ab9e
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ INTERFACE
$<IF:$<CONFIG:Debug>,,-fno-strict-aliasing> $<IF:$<CONFIG:Debug>,,-fno-strict-aliasing>
-pipe -pipe
-Wall -Wall
-W -Wextra
-Wno-unused-parameter -Wno-unused-parameter
-Wno-switch -Wno-switch
-Wno-missing-field-initializers -Wno-missing-field-initializers

View file

@ -22,7 +22,7 @@ target_compile_options(common_options
INTERFACE INTERFACE
-pipe -pipe
-Wall -Wall
-W -Wextra
-fPIE -fPIE
$<$<COMPILE_LANGUAGE:OBJC,OBJCXX>:-fobjc-weak> $<$<COMPILE_LANGUAGE:OBJC,OBJCXX>:-fobjc-weak>
-fvisibility-inlines-hidden -fvisibility-inlines-hidden