projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82e9281
)
Make it compile with g++ again
author
Dale Weiler <killfieldengine@gmail.com>
Sun, 16 Jun 2013 05:59:41 +0000
(
05:59
+0000)
committer
Dale Weiler <killfieldengine@gmail.com>
Sun, 16 Jun 2013 05:59:41 +0000
(
05:59
+0000)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 2e5c1eea8323b4cac1b55e9933f8d22014c7baa6..ba3a04909a71747d4cc93464c97d63d6b7c05756 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-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)