pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib MesaLib: strip out -Werror=return-type



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65dc0ef33f60
branches:  trunk
changeset: 400219:65dc0ef33f60
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Aug 24 20:39:37 2019 +0000

description:
MesaLib: strip out -Werror=return-type

Mesa has some switch statements that do assert(0) for the default case
and return on all the other cases. Some versions of GCC count these
functions as not terminating with the right return value and are erroring.

reported by wilbury.

diffstat:

 graphics/MesaLib/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 06ce66637237 -r 65dc0ef33f60 graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Sat Aug 24 20:11:19 2019 +0000
+++ b/graphics/MesaLib/Makefile Sat Aug 24 20:39:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.153 2019/08/23 11:37:48 nia Exp $
+# $NetBSD: Makefile,v 1.154 2019/08/24 20:39:37 nia Exp $
 
 DISTNAME=      mesa-19.1.4
 PKGNAME=       ${DISTNAME:S/mesa/MesaLib/}
@@ -56,6 +56,8 @@
 
 CPPFLAGS+=     -DHAVE_NOATEXIT
 
+BUILDLINK_TRANSFORM+=  rm:-Werror=return-type
+
 # Work around Xorg segfaulting in radeon driver due to wrong alloca being used
 CFLAGS.NetBSD+=                -Dalloca=__builtin_alloca
 CXXFLAGS.NetBSD+=      -Dalloca=__builtin_alloca



Home | Main Index | Thread Index | Old Index