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 Disable C++11 warnings about `register...



details:   https://anonhg.NetBSD.org/src/rev/1a9cba6bfdbf
branches:  trunk
changeset: 343788:1a9cba6bfdbf
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Feb 26 21:20:17 2016 +0000

description:
Disable C++11 warnings about `register' qualifiers in glsl_lexer.cpp.

glsl_lexer.cpp was generated by a flex that still uses it.  It is
harmless.

diffstat:

 external/mit/xorg/lib/libglsl.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 122848ec4049 -r 1a9cba6bfdbf external/mit/xorg/lib/libglsl.mk
--- a/external/mit/xorg/lib/libglsl.mk  Fri Feb 26 18:29:55 2016 +0000
+++ b/external/mit/xorg/lib/libglsl.mk  Fri Feb 26 21:20:17 2016 +0000
@@ -1,9 +1,11 @@
-#      $NetBSD: libglsl.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $
+#      $NetBSD: libglsl.mk,v 1.2 2016/02/26 21:20:17 riastradh Exp $
 
 LIBGLSL_GENERATED_CXX_FILES = \
        glsl_lexer.cpp \
        glsl_parser.cpp 
 
+COPTS.glsl_lexer.cpp+= -Wno-deprecated-register
+
 LIBGLSL_FILES = \
        ast_array_index.cpp \
        ast_expr.cpp \



Home | Main Index | Thread Index | Old Index