hotspot/make/linux/makefiles/gcc.make
changeset 18073 f02460441ddc
parent 17880 17f3d10c297f
child 18447 1481a04c99e2
equal deleted inserted replaced
18069:e6d4971c8650 18073:f02460441ddc
   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"