From 367b0e519e77e78cc43fbb0b85bb7ee0e4acbdb4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Apr 2014 14:15:05 +0200 Subject: enable more warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 92ab428..15838a1 100644 --- a/Makefile +++ b/Makefile @@ -54,8 +54,9 @@ WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissi -Wbad-function-cast -Wwrite-strings -Wlogical-op -Wstrict-prototypes -Wold-style-definition \ -Wvector-operation-performance -Wstack-protector -Wunsuffixed-float-constants -Wcast-align \ -Wsync-nand -Wunsafe-loop-optimizations -# Warnings violated by Cython and therefore excluded: (TODO) -# -Wshadow -Wredundant-decls -Winline -Wsign-conversion -Wcast-qual -Wpadded +# Warnings violated by Cython and therefore only use for C and not Cython +CWARN = -Wshadow -Wredundant-decls -Winline -Wcast-qual +# -Wsign-conversion -Wpadded (TODO) # The C standard for C code compilation STD = c99 LIBS_idcrtc = xcb-randr @@ -113,11 +114,11 @@ bin/%.so: obj/%.o obj/%_c.o obj/%.o: src/%.c @mkdir -p obj - $(CC) $(FLAGS) -c -o $@ $< + $(CC) $(FLAGS) $(CWARN) -c -o $@ $< obj/%_c.o: src/%_c.c src/%_c.h @mkdir -p obj - $(CC) $(FLAGS) -c -o $@ $< + $(CC) $(FLAGS) $(CWARN) -c -o $@ $< obj/%.o: obj/%.c @mkdir -p obj -- cgit v1.2.3-70-g09d2