aboutsummaryrefslogtreecommitdiff
path: root/lib/libbsm
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2018-07-28 20:04:39 +0000
committerAlan Somers <asomers@FreeBSD.org>2018-07-28 20:04:39 +0000
commit80d3469a3fba2f4c522d2aaf7408119fca602b27 (patch)
tree16a476efe6a937dd991a96a8d5491be7dc58d651 /lib/libbsm
parente78f6dd79fdda4c7224f72162d7948a96950f914 (diff)
downloadsrc-80d3469a3fba2f4c522d2aaf7408119fca602b27.tar.gz
src-80d3469a3fba2f4c522d2aaf7408119fca602b27.zip
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
Notes
Notes: svn path=/head/; revision=336838
Diffstat (limited to 'lib/libbsm')
-rw-r--r--lib/libbsm/Makefile7
1 files changed, 7 insertions, 0 deletions
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