summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2011-10-27 21:32:28 +0000
committerTim Angus <tim@ngus.net>2013-01-10 23:38:31 +0000
commit43285fefafed6821fb277c71da7b28d5291d87dd (patch)
tree0226ebc695a8b5964f98385aa0ba842bf44065b4 /Makefile
parent6fa292451d11608d1588f1b28569ccb2dd1cea57 (diff)
* Fix various warnings with GCC and clang
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0af4d137..31bd625b 100644
--- a/Makefile
+++ b/Makefile
@@ -268,7 +268,7 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu"))
endif
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
- -Wno-self-assign -pipe -DUSE_ICON
+ -pipe -DUSE_ICON
CLIENT_CFLAGS += $(SDL_CFLAGS)
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
@@ -879,6 +879,10 @@ else
RENDERER_LIBS += -ljpeg
endif
+ifeq ("$(CC)", $(findstring "$(CC)", "clang" "clang++"))
+ BASE_CFLAGS += -Qunused-arguments
+endif
+
ifdef DEFAULT_BASEDIR
BASE_CFLAGS += -DDEFAULT_BASEDIR=\\\"$(DEFAULT_BASEDIR)\\\"
endif