comparison make/bsd/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 2dd7abe7b841
children b51e29501f30
comparison
equal deleted inserted replaced
14657:4adcdd3ccb66 14658:d72cee0607a3
258 # WARNINGS_ARE_ERRORS += -Wno-tautological-constant-out-of-range-compare 258 # WARNINGS_ARE_ERRORS += -Wno-tautological-constant-out-of-range-compare
259 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess 259 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess
260 WARNINGS_ARE_ERRORS += -Wno-empty-body 260 WARNINGS_ARE_ERRORS += -Wno-empty-body
261 endif 261 endif
262 262
263 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wformat=2 -Wno-error=format-nonliteral 263 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wformat=2
264 264
265 ifeq ($(USE_CLANG),) 265 ifeq ($(USE_CLANG),)
266 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit 266 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
267 # conversions which might affect the values. Only enable it in earlier versions. 267 # conversions which might affect the values. Only enable it in earlier versions.
268 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" 268 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"