Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clang, gcc >=7.3.0 issues. #24

Merged
merged 13 commits into from
Apr 30, 2018
11 changes: 10 additions & 1 deletion Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ UNZIP = unzip

TESTGEN = $(CXXTEST_DIR)/cxxtestgen.pl

#
# Compiler version check
#

GCCVERSION = $(shell g++ --version | grep ^g++ | sed 's/^.* //g')

#
# Unzipping
#
Expand All @@ -71,12 +77,15 @@ CFLAGS += \
-Wall \
-Wextra \
-Werror \
-Wno-error=terminate \
-Wno-deprecated \
-std=c++0x \
\
-g \

ifeq "$(GCCVERSION)" "7.3.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this affects other versions as well. For example, I have 6.3.0 and this warning already exists. Can you figure out when this warning was introduced, and check if the version is gte that version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 73e94b.

CFLAGS += -Wno-terminate
endif

%.obj: %.cpp
@echo "CC\t" $@
@$(COMPILE) -c -o $@ $< $(CFLAGS) $(addprefix -I, $(LOCAL_INCLUDES))
Expand Down