[Mesa-dev] [PATCH 19/19] glsl: define YY_NO_INPUT to prevent unused symbol warnings
Matt Turner
mattst88 at gmail.com
Mon Aug 28 21:57:21 UTC 2017
Otherwise clang warns:
glsl/glsl_lexer.cpp:3507:16: warning: function 'yyinput' is not needed
and will not be emitted [-Wunneeded-internal-declaration]
static int yyinput (yyscan_t yyscanner)
^
---
src/compiler/glsl/glsl_lexer.ll | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/glsl/glsl_lexer.ll b/src/compiler/glsl/glsl_lexer.ll
index d4d7ada1b1..7c41455d98 100644
--- a/src/compiler/glsl/glsl_lexer.ll
+++ b/src/compiler/glsl/glsl_lexer.ll
@@ -34,6 +34,7 @@ static int classify_identifier(struct _mesa_glsl_parse_state *, const char *);
#define YY_NO_UNISTD_H
#endif
+#define YY_NO_INPUT
#define YY_USER_ACTION \
do { \
yylloc->first_column = yycolumn + 1; \
--
2.13.5
More information about the mesa-dev
mailing list