diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-11 21:49:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-11 21:49:54 +0200 |
commit | 80a321118cc46c357a317b8668998d13f8c8b062 (patch) | |
tree | 81f43a1eb00fb48d78568a3cc71ee77e955ba80b /Makefile | |
parent | hotplugging does work, can operate on CRTC:s without any attached monitors (diff) | |
download | blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.gz blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.bz2 blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.xz |
add more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -49,13 +49,17 @@ PKGCONFIG ?= pkg-config OPTIMISE ?= -Og -g # Warnings settings for C code compilation WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \ - -Wfloat-equal -Wmissing-prototypes -Wmissing-declarations -Wtrampolines -Wnested-externs \ - -Wno-variadic-macros -Wdeclaration-after-statement -Wundef -Wpacked -Wunsafe-loop-optimizations \ - -Wbad-function-cast -Wwrite-strings -Wlogical-op -Wstrict-prototypes -Wold-style-definition \ - -Wvector-operation-performance -Wstack-protector -Wunsuffixed-float-constants -Wcast-align \ - -Wsync-nand + -Wtrampolines -Wfloat-equal -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ + -Wno-variadic-macros -Wsync-nand -Wunsafe-loop-optimizations -Wcast-align \ + -Wdeclaration-after-statement -Wundef -Wbad-function-cast -Wwrite-strings -Wlogical-op \ + -Wstrict-prototypes -Wold-style-definition -Wpacked -Wvector-operation-performance \ + -Wunsuffixed-float-constants -Wsuggest-attribute=const -Wsuggest-attribute=noreturn \ + -Wsuggest-attribute=format -Wnormalized=nfkc # Warnings violated by Cython and therefore only use for C and not Cython -CWARN = -Wshadow -Wredundant-decls -Winline -Wcast-qual -Wsign-conversion -Wstrict-overflow +CWARN = -Wshadow -Wredundant-decls -Winline -Wcast-qual -Wsign-conversion -Wstrict-overflow \ + -Wconversion -Wsuggest-attribute=pure +#not used: -Wtraditional (tranditional C function definitions are ridiculous) +#not used because of libxcb's API: -Waggregate-return, -Wtraditional-conversion (also useless) # The C standard for C code compilation STD = c99 LIBS_idcrtc = xcb-randr |