Make it compile with g++ again

This commit is contained in:
Dale Weiler 2013-06-16 05:59:41 +00:00
parent 82e92811e4
commit 004832f6ec

View file

@ -35,10 +35,15 @@ else
#Tiny C Compiler doesn't know what -pedantic-errors is
# and instead of ignoring .. just errors.
ifneq ($(CC), tcc)
CFLAGS += -Wstrict-prototypes -pedantic-errors
CFLAGS += -pedantic-errors
else
CFLAGS += -Wno-pointer-sign -fno-common
endif
#-Wstrict-prototypes is not valid in g++
ifneq ($(CC), g++)
CFLAGS += -Wstrict-prototypes
endif
endif
ifeq ($(track), no)