From owner-svn-src-head@freebsd.org Sat Jul 28 20:04:41 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B38A105C681; Sat, 28 Jul 2018 20:04:41 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B452D7D956; Sat, 28 Jul 2018 20:04:40 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9552E393D; Sat, 28 Jul 2018 20:04:40 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6SK4e1x021335; Sat, 28 Jul 2018 20:04:40 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6SK4emt021332; Sat, 28 Jul 2018 20:04:40 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201807282004.w6SK4emt021332@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Sat, 28 Jul 2018 20:04:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336838 - in head/lib: libauditd libbsm X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in head/lib: libauditd libbsm X-SVN-Commit-Revision: 336838 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2018 20:04:41 -0000 Author: asomers Date: Sat Jul 28 20:04:39 2018 New Revision: 336838 URL: https://svnweb.freebsd.org/changeset/base/336838 Log: 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 Modified: head/lib/libauditd/Makefile head/lib/libbsm/Makefile Modified: head/lib/libauditd/Makefile ============================================================================== --- head/lib/libauditd/Makefile Sat Jul 28 19:44:20 2018 (r336837) +++ head/lib/libauditd/Makefile Sat Jul 28 20:04:39 2018 (r336838) @@ -23,3 +23,10 @@ WARNS?= 3 MAN= .include + +# 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 Modified: head/lib/libbsm/Makefile ============================================================================== --- head/lib/libbsm/Makefile Sat Jul 28 19:44:20 2018 (r336837) +++ head/lib/libbsm/Makefile Sat Jul 28 20:04:39 2018 (r336838) @@ -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