From c9a900ed440fb8e342cb7b77f33491cd60d57fa5 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 18 Feb 2010 02:06:57 +0000 Subject: [PATCH] Allow suppression of -Wcast-align for WARNS>=4 by defining NO_WCAST_ALIGN. The headers of the standard C++ library are not 64-bit clean and trigger the warning. This prevents use of WARNS>=4 on ia64 for example. --- share/mk/bsd.sys.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index afce04474e97..97860f2bd856 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -43,7 +43,10 @@ CWARNFLAGS += -W -Wno-unused-parameter -Wstrict-prototypes\ . endif . if ${WARNS} >= 4 CWARNFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch\ - -Wshadow -Wcast-align -Wunused-parameter + -Wshadow -Wunused-parameter +. if !defined(NO_WCAST_ALIGN) +CWARNFLAGS += -Wcast-align +. endif . endif # BDECFLAGS . if ${WARNS} >= 6