From 205f90ab9e78990c41029a1fe465ba3b195fab00 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sun, 6 Mar 2022 22:13:07 +0100 Subject: [PATCH] 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. --- options_linux.cmake | 2 +- options_mac.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/options_linux.cmake b/options_linux.cmake index 5a4c298..de6f7db 100644 --- a/options_linux.cmake +++ b/options_linux.cmake @@ -12,7 +12,7 @@ INTERFACE $,,-fno-strict-aliasing> -pipe -Wall - -W + -Wextra -Wno-unused-parameter -Wno-switch -Wno-missing-field-initializers diff --git a/options_mac.cmake b/options_mac.cmake index c7792c7..8da4ab4 100644 --- a/options_mac.cmake +++ b/options_mac.cmake @@ -22,7 +22,7 @@ target_compile_options(common_options INTERFACE -pipe -Wall - -W + -Wextra -fPIE $<$:-fobjc-weak> -fvisibility-inlines-hidden