pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/MesaLib



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Aug 24 20:39:37 UTC 2019

Modified Files:
        pkgsrc/graphics/MesaLib: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.153 -r1.154 pkgsrc/graphics/MesaLib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/MesaLib/Makefile
diff -u pkgsrc/graphics/MesaLib/Makefile:1.153 pkgsrc/graphics/MesaLib/Makefile:1.154
--- pkgsrc/graphics/MesaLib/Makefile:1.153      Fri Aug 23 11:37:48 2019
+++ pkgsrc/graphics/MesaLib/Makefile    Sat Aug 24 20:39:37 2019
@@ -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 @@ MESON_ARGS+=  -Dshared-glapi=true
 
 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