Skip to content

Commit d21905f

Browse files
authored
Disable new gcc compiler warning. (#46)
gcc was updated on the ubuntu autobuild, but not yet on MacOS. Presumably this flag will be needed on MacOS in the future, too.
1 parent 67009a3 commit d21905f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@ endif
2525

2626
LIBS =
2727

28+
2829
# Disable easylogging++ logging to a file by default
2930
CCOMMONFLAGS = -DPLATFORM_LINUX -Wall -Werror -Wno-unused-variable -std=c++14 \
3031
-DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -pthread
32+
33+
# This warning depends on the gcc version, which differs between Mac and Linux
34+
PLATFORM=$(shell uname)
35+
ifneq ($(PLATFORM),Darwin)
36+
CCOMMONFLAGS += -Wno-error=stringop-overflow=
37+
endif
38+
3139
CNORMALFLAGS = $(CCOMMONFLAGS) -O3
3240
CDEBUGFLAGS = $(CCOMMONFLAGS) -g
3341
LINKCOMMONFLAGS = -pthread

0 commit comments

Comments
 (0)