From 83a9f03682577d04a19d80a9732175e20fd7cc70 Mon Sep 17 00:00:00 2001 From: Andrew Kirmse Date: Sun, 13 Jul 2025 11:22:35 -0700 Subject: [PATCH 1/3] Disable new gcc compiler warning. --- code/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Makefile b/code/Makefile index 054e765..c03b313 100644 --- a/code/Makefile +++ b/code/Makefile @@ -27,7 +27,7 @@ LIBS = # Disable easylogging++ logging to a file by default CCOMMONFLAGS = -DPLATFORM_LINUX -Wall -Werror -Wno-unused-variable -std=c++14 \ - -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread + -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread -Wno-error=stringop-overflow CNORMALFLAGS = $(CCOMMONFLAGS) -O3 CDEBUGFLAGS = $(CCOMMONFLAGS) -g LINKCOMMONFLAGS = -pthread From 57617321f7a1ee190bd2db90cd0b4872228bf562 Mon Sep 17 00:00:00 2001 From: Andrew Kirmse Date: Sun, 13 Jul 2025 11:35:36 -0700 Subject: [PATCH 2/3] fix --- code/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Makefile b/code/Makefile index c03b313..038a07a 100644 --- a/code/Makefile +++ b/code/Makefile @@ -27,7 +27,7 @@ LIBS = # Disable easylogging++ logging to a file by default CCOMMONFLAGS = -DPLATFORM_LINUX -Wall -Werror -Wno-unused-variable -std=c++14 \ - -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread -Wno-error=stringop-overflow + -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread -Wno-error=stringop-overflow= CNORMALFLAGS = $(CCOMMONFLAGS) -O3 CDEBUGFLAGS = $(CCOMMONFLAGS) -g LINKCOMMONFLAGS = -pthread From 46d786fac08b1c9470b55b24cef14f0eeff6c9d7 Mon Sep 17 00:00:00 2001 From: Andrew Kirmse Date: Sun, 13 Jul 2025 12:22:46 -0700 Subject: [PATCH 3/3] platform --- code/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/Makefile b/code/Makefile index 038a07a..5ee7aea 100644 --- a/code/Makefile +++ b/code/Makefile @@ -25,9 +25,17 @@ endif LIBS = + # Disable easylogging++ logging to a file by default CCOMMONFLAGS = -DPLATFORM_LINUX -Wall -Werror -Wno-unused-variable -std=c++14 \ - -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread -Wno-error=stringop-overflow= + -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread + +# This warning depends on the gcc version, which differs between Mac and Linux +PLATFORM=$(shell uname) +ifneq ($(PLATFORM),Darwin) +CCOMMONFLAGS += -Wno-error=stringop-overflow= +endif + CNORMALFLAGS = $(CCOMMONFLAGS) -O3 CDEBUGFLAGS = $(CCOMMONFLAGS) -g LINKCOMMONFLAGS = -pthread