Enable -Wsign-compare and fix the warnings

This commit is contained in:
ISSOtm
2022-02-05 14:19:25 +01:00
committed by Eldred Habert
parent 72b677a8d7
commit ac59ecf3c0
7 changed files with 11 additions and 15 deletions

View File

@@ -54,7 +54,6 @@ else()
-Wold-style-definition -Wshift-overflow=2 -Wstrict-overflow=5
-Wstrict-prototypes -Wstringop-overflow=4 -Wundef -Wuninitialized -Wunused
-Wshadow # TODO: -Wshadow=compatible-local ?
-Wno-sign-compare # TODO: fix those warnings
-Wformat=2 -Wformat-overflow=2 -Wformat-truncation=1
-Wno-format-nonliteral # We have a couple of "dynamic" prints
# We do some range checks that are always false on some platforms (GCC, Clang)