comparison make/solaris/makefiles/gcc.make @ 14658:d72cee0607a3

8036122: Fix warning 'format not a string literal' Reviewed-by: mduigou, kvn
author goetz
date Mon, 03 Mar 2014 11:54:35 +0100
parents b6ab2c9abfc5
children 92aa6797d639
comparison
equal deleted inserted replaced
14657:4adcdd3ccb66 14658:d72cee0607a3
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 -Wformat=2 -Wno-error=format-nonliteral 121 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2
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