comparison make/bsd/makefiles/gcc.make @ 12077:e16282db4946

8022956: Clang: enable return type warnings on BSD Reviewed-by: coleenp, sla
author twisti
date Tue, 20 Aug 2013 10:57:50 -0700
parents 91acb82a8b7a
children dfc126b2f659
comparison
equal deleted inserted replaced
12076:6725044c5725 12077:e16282db4946
245 WARNINGS_ARE_ERRORS += -Wno-unused-value -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses 245 WARNINGS_ARE_ERRORS += -Wno-unused-value -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses
246 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-compare 246 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-compare
247 # Not yet supported by clang in Xcode 4.6.2 247 # Not yet supported by clang in Xcode 4.6.2
248 # WARNINGS_ARE_ERRORS += -Wno-tautological-constant-out-of-range-compare 248 # WARNINGS_ARE_ERRORS += -Wno-tautological-constant-out-of-range-compare
249 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess 249 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess
250 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body 250 WARNINGS_ARE_ERRORS += -Wno-empty-body
251 endif 251 endif
252 252
253 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef 253 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef
254 254
255 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" 255 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"