From 555f12d92f326abeba936699731d9d1cc5a8ef01 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Fri, 21 Nov 2025 00:45:25 +0800 Subject: [PATCH] Suppress compilation warning in PureDOOM GCC 15.2.1 reports a warning about unterminated string initialization in PureDOOM.h:10158 where "spida1d1" (8 chars) doesn't fit in char[8] with null terminator. Since PureDOOM.h is external code (auto-downloaded), suppress the warning via compiler flag rather than modifying the source. Close #7 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 51a5344..779eb52 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,8 @@ PUREDOOM_CFLAGS_TO_CHECK := \ -Wno-enum-conversion \ -Wno-implicit-fallthrough \ -Wno-dangling-pointer \ - -Wno-maybe-uninitialized + -Wno-maybe-uninitialized \ + -Wno-unterminated-string-initialization # Only add flags that the compiler supports PUREDOOM_CFLAGS := $(foreach flag,$(PUREDOOM_CFLAGS_TO_CHECK),$(call check_flag,$(flag)))