Removed -ansi compiler flag and -Wstrict-prototypes.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 7 Jun 2014 15:53:53 +0000 (17:53 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 7 Jun 2014 15:53:53 +0000 (17:53 +0200)
The ansi does not allow to use type declaration in loop that make the code
easier to read. And the GTK3 build fails with strict prototypes enabled.

config.mk

index 66def08..eaf6a00 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -40,7 +40,7 @@ LIBFLAGS = $(shell pkg-config --libs $(LIBS))
 
 # normal compiler flags
 CFLAGS  += $(shell pkg-config --cflags $(LIBS))
-CFLAGS  += -Wall -pipe -std=c99 -ansi -Wstrict-prototypes
+CFLAGS  += -Wall -pipe -std=c99
 CFLAGS  += -Wno-overlength-strings -Werror=format-security
 CFLAGS  += ${CPPFLAGS}
 LDFLAGS += ${LIBFLAGS}