diff options
author | Alan Somers <asomers@FreeBSD.org> | 2018-07-28 20:04:39 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2018-07-28 20:04:39 +0000 |
commit | 80d3469a3fba2f4c522d2aaf7408119fca602b27 (patch) | |
tree | 16a476efe6a937dd991a96a8d5491be7dc58d651 | |
parent | e78f6dd79fdda4c7224f72162d7948a96950f914 (diff) | |
download | src-80d3469a3fba2f4c522d2aaf7408119fca602b27.tar.gz src-80d3469a3fba2f4c522d2aaf7408119fca602b27.zip |
Notes
-rw-r--r-- | lib/libauditd/Makefile | 7 | ||||
-rw-r--r-- | lib/libbsm/Makefile | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/libauditd/Makefile b/lib/libauditd/Makefile index 2df9fa8fb0ea..c29c32ceb12b 100644 --- a/lib/libauditd/Makefile +++ b/lib/libauditd/Makefile @@ -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 diff --git a/lib/libbsm/Makefile b/lib/libbsm/Makefile index 0a4b49845413..9b71967d46ba 100644 --- a/lib/libbsm/Makefile +++ b/lib/libbsm/Makefile @@ -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 |