comparison make/solaris/makefiles/gcc.make @ 14368:b6ab2c9abfc5

8030350: Enable additional compiler warnings for GCC Reviewed-by: dholmes, coleenp, erikj, tbell, ihse
author mduigou
date Wed, 12 Feb 2014 09:37:18 -0800
parents de6a9e811145
children d72cee0607a3 4ca6dc0799b6
comparison
equal deleted inserted replaced
14366:7907932bdd99 14368:b6ab2c9abfc5
116 116
117 117
118 # Compiler warnings are treated as errors 118 # Compiler warnings are treated as errors
119 WARNINGS_ARE_ERRORS = -Werror 119 WARNINGS_ARE_ERRORS = -Werror
120 # Enable these warnings. See 'info gcc' about details on these options 120 # Enable these warnings. See 'info gcc' about details on these options
121 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef 121 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2 -Wno-error=format-nonliteral
122 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS) 122 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
123 # Special cases 123 # Special cases
124 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) 124 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
125 125
126 # The flags to use for an Optimized g++ build 126 # The flags to use for an Optimized g++ build