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.
This commit is contained in:
Marcel Moolenaar 2010-02-18 02:06:57 +00:00
parent 96f2d85e89
commit c9a900ed44
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204025

View File

@ -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