Source-Changes-HG archive

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

[src/trunk]: src/external/mit/xorg/lib/dri7 Fix dri7 build with Clang/LLVM



details:   https://anonhg.NetBSD.org/src/rev/22d14a738b40
branches:  trunk
changeset: 363605:22d14a738b40
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Aug 03 02:19:12 2018 +0000

description:
Fix dri7 build with Clang/LLVM

The register keyword is deprecated in newer C++ standards.
Add a compiler flag to disable a warning that is turned into a fatal error.

diffstat:

 external/mit/xorg/lib/dri7/libglsl7.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 4c66fcfb0afb -r 22d14a738b40 external/mit/xorg/lib/dri7/libglsl7.mk
--- a/external/mit/xorg/lib/dri7/libglsl7.mk    Fri Aug 03 02:17:33 2018 +0000
+++ b/external/mit/xorg/lib/dri7/libglsl7.mk    Fri Aug 03 02:19:12 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: libglsl7.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $
+#      $NetBSD: libglsl7.mk,v 1.2 2018/08/03 02:19:12 kamil Exp $
 
 # This copy for MesaLib7 old drivers.
 
@@ -14,6 +14,7 @@
 CPPFLAGS+=     -I${X11SRCDIR.MesaLib7}/src/glsl
 CPPFLAGS+=     -I${X11SRCDIR.MesaLib7}/src/mapi
 CPPFLAGS+=     -I${X11SRCDIR.MesaLib7}/src/mesa
+COPTS.glsl_lexer.cpp+= -Wno-deprecated-register
 
 SRCS.glsl.libglcpp= \
        glcpp-lex.c \



Home | Main Index | Thread Index | Old Index