Module Name: src
Committed By: kamil
Date: Fri Aug 3 02:19:12 UTC 2018
Modified Files:
src/external/mit/xorg/lib/dri7: libglsl7.mk
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/mit/xorg/lib/dri7/libglsl7.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/mit/xorg/lib/dri7/libglsl7.mk
diff -u src/external/mit/xorg/lib/dri7/libglsl7.mk:1.1 src/external/mit/xorg/lib/dri7/libglsl7.mk:1.2
--- src/external/mit/xorg/lib/dri7/libglsl7.mk:1.1 Mon Jan 5 03:45:31 2015
+++ src/external/mit/xorg/lib/dri7/libglsl7.mk Fri Aug 3 02:19:12 2018
@@ -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}/inclu
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 \