mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
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:
parent
96f2d85e89
commit
c9a900ed44
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204025
@ -43,7 +43,10 @@ CWARNFLAGS += -W -Wno-unused-parameter -Wstrict-prototypes\
|
|||||||
. endif
|
. endif
|
||||||
. if ${WARNS} >= 4
|
. if ${WARNS} >= 4
|
||||||
CWARNFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch\
|
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
|
. endif
|
||||||
# BDECFLAGS
|
# BDECFLAGS
|
||||||
. if ${WARNS} >= 6
|
. if ${WARNS} >= 6
|
||||||
|
Loading…
Reference in New Issue
Block a user