aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-13 23:34:46 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-13 23:38:33 +0100
commit5e7954b4088206b9767d5560715f4ac25b133669 (patch)
tree23f9edd33e62b63d9ff9e66d56c75ad9995c9355
parentea583f7b8a0a55441fdd8923c66e3f4545ab864f (diff)
downloadtinycc-5e7954b4088206b9767d5560715f4ac25b133669.tar.gz
tinycc-5e7954b4088206b9767d5560715f4ac25b133669.tar.bz2
Stop setting -Wno-unused-result switch in Makefile
This commit revert commit 061b5799cc1feb15014da589ea98057deda14a23 and subsequent commits to detect whether -Wno-unused-result is supported or not by the compiler used to compile tcc. No warning about unused results is issued in a normal build and thus this switch is only needed if calling make with extra switches in CFLAGS or CPPFLAGS. It should thus be added with the extra switches when calling make and not in the Makefile.
-rw-r--r--Makefile11
1 files changed, 0 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 8281d56..0533da1 100644
--- a/Makefile
+++ b/Makefile
@@ -15,17 +15,6 @@ ifneq ($(GCC_MAJOR),2)
CFLAGS+=-fno-strict-aliasing
ifneq ($(GCC_MAJOR),3)
CFLAGS+=-Wno-pointer-sign -Wno-sign-compare
-
-# add -Wno-unused-result only on gcc >= 4.4
-ifeq ($(GCC_MAJOR),4)
-GCCGREATERTHEN44 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 4)
-else
-GCCGREATERTHEN44 := 1
-endif
-ifeq ($(GCCGREATERTHEN44),1)
-CFLAGS+=-Wno-unused-result
-endif
-
endif
endif