comparison make/linux/makefiles/gcc.make @ 4824:ef57c43512d6

8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux Reviewed-by: dholmes, coleenp Contributed-by: jeremymanson@google.com, calvin.cheung@oracle.com
author ccheung
date Thu, 13 Jun 2013 22:02:40 -0700
parents 2cb5d5f6d5e5
children cc63bcb47cce
comparison
equal deleted inserted replaced
35:62f26dd06314 36:07c350814226
212 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare 212 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare
213 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess 213 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess
214 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body 214 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
215 endif 215 endif
216 216
217 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function 217 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value
218 218
219 ifeq ($(USE_CLANG),) 219 ifeq ($(USE_CLANG),)
220 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit 220 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
221 # conversions which might affect the values. Only enable it in earlier versions. 221 # conversions which might affect the values. Only enable it in earlier versions.
222 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" 222 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"