]> gitweb.michael.orlitzky.com - libsvgtiny.git/blobdiff - Makefile
More of the C89... really do test it please!
[libsvgtiny.git] / Makefile
index 2f74aa11fdffb6f9a0807286c3ad0eec94896e84..94153e4c549e6d2a484431a61dae8319c6cb0167 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,11 +10,14 @@ include build/makefiles/Makefile.tools
 TESTRUNNER := $(ECHO)
 
 # Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
        -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-       -Wmissing-declarations -Wnested-externs -Werror -pedantic
-ifneq ($(GCCVER),2)
-  WARNFLAGS := $(WARNFLAGS) -Wextra
+       -Wmissing-declarations -Wnested-externs -pedantic
+# BeOS/Haiku/AmigaOS4 standard library headers create warnings
+ifneq ($(TARGET),beos)
+  ifneq ($(TARGET),AmigaOS)
+    WARNFLAGS := $(WARNFLAGS) -Werror
+  endif
 endif
 CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
        -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)