From owner-svn-ports-head@freebsd.org Thu Feb 20 21:41:03 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 67AA6247211; Thu, 20 Feb 2020 21:41:03 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Np1V6BMcz3Kxv; Thu, 20 Feb 2020 21:41:02 +0000 (UTC) (envelope-from zeising@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 C36FF500; Thu, 20 Feb 2020 21:41:02 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 01KLf25W016258; Thu, 20 Feb 2020 21:41:02 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 01KLf2fw016257; Thu, 20 Feb 2020 21:41:02 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <202002202141.01KLf2fw016257@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Thu, 20 Feb 2020 21:41:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r526592 - head/Mk/Uses X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: head/Mk/Uses X-SVN-Commit-Revision: 526592 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 21:41:03 -0000 Author: zeising Date: Thu Feb 20 21:41:02 2020 New Revision: 526592 URL: https://svnweb.freebsd.org/changeset/ports/526592 Log: xorg ports: Add -Werror=uninitialized to CFLAGS Add -Werror=uninitialized to CFLAGS for ports specifying xorg-cat:[driver,lib,xserver]. There has been cases in the past when use of uninitialized variables have caused crashes, so add this as an error to detect it early. Modified: head/Mk/Uses/xorg-cat.mk Modified: head/Mk/Uses/xorg-cat.mk ============================================================================== --- head/Mk/Uses/xorg-cat.mk Thu Feb 20 21:37:46 2020 (r526591) +++ head/Mk/Uses/xorg-cat.mk Thu Feb 20 21:41:02 2020 (r526592) @@ -124,6 +124,7 @@ USE_XORG+= xorg-macros . elif ${_XORG_CAT} == driver USE_XORG+= xi xorg-server xorgproto +CFLAGS+= -Werror=uninitialized . if ${_XORG_BUILDSYS} == meson # Put special stuff for meson here . else @@ -150,6 +151,7 @@ PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \ . endif . elif ${_XORG_CAT} == lib +CFLAGS+= -Werror=uninitialized .include "${USESDIR}/pathfix.mk" . if ${_XORG_BUILDSYS} == meson # put meson stuff here @@ -165,6 +167,7 @@ CONFIGURE_ARGS+=--enable-malloc0returnsnull . elif ${_XORG_CAT} == xserver DISTNAME?= xorg-server-${PORTVERSION} +CFLAGS+= -Werror=uninitialized .include "${USESDIR}/pathfix.mk" . if ${_XORG_BUILDSYS} == meson # put meson stuff here