Ignore unknown warning options

GCC and Clang do not understand the exact same warning option sets
This commit is contained in:
ISSOtm
2021-10-31 21:05:36 +01:00
parent 1e4ace8974
commit 0d6bfb84ce
2 changed files with 3 additions and 1 deletions

View File

@@ -54,7 +54,8 @@ else()
-Wstringop-overflow=4 -Walloc-zero -Wduplicated-cond -Wstringop-overflow=4 -Walloc-zero -Wduplicated-cond
-Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wlogical-op -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wlogical-op
-Wnested-externs -Wno-aggressive-loop-optimizations -Winline -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()
endif() endif()

View File

@@ -219,6 +219,7 @@ develop:
-Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wlogical-op \ -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wlogical-op \
-Wnested-externs -Wno-aggressive-loop-optimizations -Winline \ -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 \
-fsanitize=shift -fsanitize=integer-divide-by-zero \ -fsanitize=shift -fsanitize=integer-divide-by-zero \
-fsanitize=unreachable -fsanitize=vla-bound \ -fsanitize=unreachable -fsanitize=vla-bound \
-fsanitize=signed-integer-overflow -fsanitize=bounds \ -fsanitize=signed-integer-overflow -fsanitize=bounds \