From 659c5de85f8624137e101ebb3a635b8e8f21ffcd Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Thu, 26 Oct 2023 13:11:35 -0700 Subject: [PATCH] Disable GCC warning about string truncation Fix issue #667 I'm not sure why these warnings just started popping up (maybe the inclusion of string in sbbs.h), but it only seems to happen in debug builds and the possible truncation is intentional. --- src/build/Common.gmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/Common.gmake b/src/build/Common.gmake index e7d3c9d79f..46503f0af5 100644 --- a/src/build/Common.gmake +++ b/src/build/Common.gmake @@ -451,7 +451,7 @@ endif ifdef DEBUG CFLAGS += -ggdb CFLAGS += -D_DEBUG - CFLAGS += -Wall -Wno-char-subscripts + CFLAGS += -Wall -Wno-char-subscripts -Wno-format-truncation else # RELEASE # -finline-functions (used to) break the baja build badly. # This also meant that -O3 wouldn't work either. -- GitLab