diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-06-18 01:08:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-06-18 01:08:50 +0200 |
commit | 7e27a501babb812af0ab8f46515f1870b4fe1f05 (patch) | |
tree | ab1b09a15af5d5c616ecee901177c4e0b775aabe /Makefile | |
parent | remove __attribute__ if not using gcc (diff) | |
download | libgamma-7e27a501babb812af0ab8f46515f1870b4fe1f05.tar.gz libgamma-7e27a501babb812af0ab8f46515f1870b4fe1f05.tar.bz2 libgamma-7e27a501babb812af0ab8f46515f1870b4fe1f05.tar.xz |
gcc specific flags and use of wrong parameter name
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -42,14 +42,14 @@ WARN = -Wall -Wextra -pedantic -Wformat=2 -Winit-self -Wmissing-include-dirs \ -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 -Wnormalized=nfkc + -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 + -Wsuggest-attribute=format -Wnormalized=nfkc endif @@ -104,11 +104,10 @@ endif # Options for the C compiler for the test. TEST_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \ - -ftree-vrp -fstrict-aliasing -fipa-pure-const -fstrict-overflow \ - -funsafe-loop-optimizations -fno-builtin + -fstrict-aliasing -fstrict-overflow -fno-builtin ifeq ($(CC),gcc) -TEST_FLAGS += -fstack-usage +TEST_FLAGS += -fstack-usage -ftree-vrp -fipa-pure-const -funsafe-loop-optimizations endif @@ -116,7 +115,6 @@ endif LIB_FLAGS = $(TEST_FLAGS) $(DEBUG_FLAGS) $(DEFINITIONS) -DLIBGAMMA_CONFIG_H - # Build rules. .PHONY: default |