summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-08-28 11:11:17 -0700
committerMatt Turner <[email protected]>2017-08-29 15:20:57 -0700
commit8b5b6a8abf98281371a0130367ccf9a643c568c8 (patch)
treef6c665257d0972ddbbe08fa212baadb2152c86d1
parent37f664a066f28207bbf6d68904222919ad962c1e (diff)
glsl: define YY_NO_INPUT to prevent unused symbol warnings
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) ^ Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
-rw-r--r--src/compiler/glsl/glsl_lexer.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_lexer.ll b/src/compiler/glsl/glsl_lexer.ll
index d4d7ada1b1f..7c41455d985 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; \