From 0d6bfb84ced7a5ac47ea6717ddada63dd8605462 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 31 Oct 2021 21:05:36 +0100 Subject: [PATCH] Ignore unknown warning options GCC and Clang do not understand the exact same warning option sets --- CMakeLists.txt | 3 ++- Makefile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbf0a735..9cf01df5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,8 @@ else() -Wstringop-overflow=4 -Walloc-zero -Wduplicated-cond -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wlogical-op -Wnested-externs -Wno-aggressive-loop-optimizations -Winline - -Wundef -Wstrict-prototypes -Wold-style-definition) + -Wundef -Wstrict-prototypes -Wold-style-definition + -Wno-unknown-warning-option -Wno-tautological-constant-out-of-range-compare) endif() endif() diff --git a/Makefile b/Makefile index 5063d10a..4995b545 100644 --- a/Makefile +++ b/Makefile @@ -219,6 +219,7 @@ develop: -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wlogical-op \ -Wnested-externs -Wno-aggressive-loop-optimizations -Winline \ -Wundef -Wstrict-prototypes -Wold-style-definition \ + -Wno-unknown-warning-option -Wno-tautological-constant-out-of-range-compare \ -fsanitize=shift -fsanitize=integer-divide-by-zero \ -fsanitize=unreachable -fsanitize=vla-bound \ -fsanitize=signed-integer-overflow -fsanitize=bounds \