]> git.sur5r.net Git - cc65/commitdiff
Use -Werror only on Travis CI builds.
authorOliver Schmidt <ol.sc@web.de>
Sun, 9 Feb 2014 18:48:30 +0000 (19:48 +0100)
committerOliver Schmidt <ol.sc@web.de>
Sun, 9 Feb 2014 18:48:30 +0000 (19:48 +0100)
There's no need to intentionally break things for people trying to build cc65 with some obscure compiler. It's enough to make sure that no new warnings sneak into the code base by having Travis CI builds fail.

src/Makefile

index 66b64d732359972df376f5a1e9c660932167b058..5ac8ed7bd77deffd3897fb8ef31d0d8ab973c142 100644 (file)
@@ -26,10 +26,12 @@ LD65_OBJ = $(datadir)/lib
 LD65_CFG = $(datadir)/cfg
 
 CFLAGS += -MMD -MP -O -std=c89 -D_SVID_SOURCE -I common \
-          -Wall -Wextra -Wno-char-subscripts -Werror $(USER_CFLAGS) \
+          -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) \
           -DCA65_INC=$(CA65_INC) -DCC65_INC=$(CC65_INC) \
           -DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG)
 
+CFLAGS += $(if $(TRAVIS),-Werror)
+
 LDLIBS += -lm
 
 INSTALL = install