Disable -Wcast-align in libbsm and libauditd
Along with some pending upstream changes, this will allow raising the WARNS level. Reviewed by: cem, aniketp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16486
This commit is contained in:
parent
5537d57432
commit
655aedb561
@ -23,3 +23,10 @@ WARNS?= 3
|
||||
MAN=
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
# Disable -Wcast-align. Casting res->ai_addr in auditd_set_host triggers this
|
||||
# warning, but it's ok because res->ai_addr must've originally pointed to a
|
||||
# sockaddr_in or sockaddr_in6 anyway.
|
||||
# Better would be to disable this warning in just that one function, but GCC
|
||||
# 4.2 can't do that :( .
|
||||
CWARNFLAGS.auditd_lib.c+= -Wno-cast-align
|
||||
|
@ -181,3 +181,10 @@ MLINKS= libbsm.3 bsm.3 \
|
||||
setaudit.2 setaudit_addr.2
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
# Disable -Wcast-align. Casting sa_local in au_to_socket_ex triggers this
|
||||
# warning, but it's ok because sa_local must've originally pointed to a
|
||||
# sockaddr_in or sockaddr_in6 anyway.
|
||||
# Better would be to disable this warning in just that one function, but GCC
|
||||
# 4.2 can't do that :( .
|
||||
CWARNFLAGS.bsm_token.c+= -Wno-cast-align
|
||||
|
Loading…
Reference in New Issue
Block a user