aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-18 01:37:33 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-18 01:37:33 +0200
commit8bd581a007a21ec7ffdaa03af5e79d1aac137841 (patch)
treee9b01865d93a61ec1f69c285de469af0edf40524 /Makefile
parentuse -O and not -O6 when GCC is not used (diff)
downloadlibgamma-8bd581a007a21ec7ffdaa03af5e79d1aac137841.tar.gz
libgamma-8bd581a007a21ec7ffdaa03af5e79d1aac137841.tar.bz2
libgamma-8bd581a007a21ec7ffdaa03af5e79d1aac137841.tar.xz
non-standard warning
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8b96ac9..179d44f 100644
--- a/Makefile
+++ b/Makefile
@@ -39,17 +39,18 @@ CC ?= gcc
WARN = -Wall -Wextra -pedantic -Wformat=2 -Winit-self -Wmissing-include-dirs \
-Wfloat-equal -Wshadow -Wmissing-prototypes -Wmissing-declarations \
-Wredundant-decls -Wnested-externs -Winline -Wno-variadic-macros \
- -Wswitch-default -Wconversion -Wunsafe-loop-optimizations -Wcast-align \
- -Wstrict-overflow -Wdeclaration-after-statement -Wundef -Wcast-qual \
- -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wpacked \
- -Wstrict-prototypes -Wold-style-definition
+ -Wswitch-default -Wconversion -Wcast-align -Wstrict-overflow \
+ -Wdeclaration-after-statement -Wundef -Wcast-qual -Wbad-function-cast \
+ -Wwrite-strings -Waggregate-return -Wpacked -Wstrict-prototypes \
+ -Wold-style-definition
ifeq ($(CC),gcc)
WARN += -Wdouble-promotion -Wtrampolines -Wsign-conversion -Wsync-nand \
-Wlogical-op -Wvector-operation-performance \
-Wunsuffixed-float-constants -Wsuggest-attribute=const \
-Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \
- -Wsuggest-attribute=format -Wnormalized=nfkc
+ -Wsuggest-attribute=format -Wnormalized=nfkc \
+ -Wunsafe-loop-optimizations
endif