hotspot/make/linux/makefiles/gcc.make
changeset 27677 b1997f2f1b56
parent 26172 7ab032af2835
child 29181 89beae49867c
equal deleted inserted replaced
27635:2cda6d613b7a 27677:b1997f2f1b56
   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 -Wunused-value -Wformat=2
   217 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type
   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"