summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-02 14:15:05 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-02 14:15:05 +0200
commit367b0e519e77e78cc43fbb0b85bb7ee0e4acbdb4 (patch)
tree0e1e25966d03a7602db73ed6b43301b949591b16 /Makefile
parentderp (diff)
downloadblueshift-367b0e519e77e78cc43fbb0b85bb7ee0e4acbdb4.tar.gz
blueshift-367b0e519e77e78cc43fbb0b85bb7ee0e4acbdb4.tar.bz2
blueshift-367b0e519e77e78cc43fbb0b85bb7ee0e4acbdb4.tar.xz
enable more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
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