shithub: rgbds

Download patch

ref: 0d6bfb84ced7a5ac47ea6717ddada63dd8605462
parent: 1e4ace8974d75367138de5e0c10769e0ee791dad
author: ISSOtm <[email protected]>
date: Sun Oct 31 17:05:36 EDT 2021

Ignore unknown warning options

GCC and Clang do not understand the exact same warning option sets

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,7 +54,8 @@
                         -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()
 
--- a/Makefile
+++ b/Makefile
@@ -219,6 +219,7 @@
 		-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 \