From 80d3469a3fba2f4c522d2aaf7408119fca602b27 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 28 Jul 2018 20:04:39 +0000 Subject: 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 --- lib/libbsm/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/libbsm') 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 + +# 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 -- cgit v1.2.3