summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-11-25 23:56:17 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-11-25 23:57:11 +0000
commite48e9a406caf69ca7943aac34f073260f9c46954 (patch)
tree21b2d6aaf8de5dfd2361e13c4f811602c2fe792f /src
parent0e15c68f54ae5217e6247603b9e31757515f89e1 (diff)
input_common: ignore some Clang warnings after 5c4774e8ce1d
error: unknown warning option '-Werror=unused-but-set-parameter'; did you mean '-Werror=unused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option]
Diffstat (limited to 'src')
-rw-r--r--src/input_common/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt
index 1d1b2e08a..5682e5ca5 100644
--- a/src/input_common/CMakeLists.txt
+++ b/src/input_common/CMakeLists.txt
@@ -56,8 +56,8 @@ else()
-Werror=reorder
-Werror=shadow
-Werror=sign-compare
- -Werror=unused-but-set-parameter
- -Werror=unused-but-set-variable
+ $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
+ $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
-Werror=unused-variable
)
endif()