comparison make/linux/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 28f281e8de1d
children 92aa6797d639
comparison
equal deleted inserted replaced
14657:4adcdd3ccb66 14658:d72cee0607a3
213 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare 213 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare
214 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess 214 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess
215 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body 215 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
216 endif 216 endif
217 217
218 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wno-error=format-nonliteral 218 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2
219 219
220 ifeq ($(USE_CLANG),) 220 ifeq ($(USE_CLANG),)
221 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit 221 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
222 # conversions which might affect the values. Only enable it in earlier versions. 222 # conversions which might affect the values. Only enable it in earlier versions.
223 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" 223 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"