From 5d7ee3974fe376cc49e40a8f66cecb4477622f68 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias <alam@srb2.org> Date: Tue, 26 Dec 2023 17:49:34 -0500 Subject: [PATCH] Build: error on array bounds --- src/CMakeLists.txt | 2 +- src/Makefile.d/versions.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7916b26c6..80dff5043 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -281,7 +281,7 @@ target_compile_options(SRB2SDL2 PRIVATE $<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,4.5.0>: -Wlogical-op - -Wno-error=array-bounds + #-Wno-error=array-bounds > $<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,4.6.0>: diff --git a/src/Makefile.d/versions.mk b/src/Makefile.d/versions.mk index d2877b374..2523d7f3c 100644 --- a/src/Makefile.d/versions.mk +++ b/src/Makefile.d/versions.mk @@ -116,7 +116,7 @@ ifdef GCC43 #WFLAGS+=-Wno-error=clobbered endif ifdef GCC44 - WFLAGS+=-Wno-error=array-bounds +#WFLAGS+=-Wno-error=array-bounds endif ifdef GCC46 WFLAGS+=-Wno-error=suggest-attribute=noreturn -- GitLab