glsl: define YY_NO_INPUT to prevent unused symbol warnings
authorMatt Turner <mattst88@gmail.com>
Mon, 28 Aug 2017 18:11:17 +0000 (11:11 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Aug 2017 22:20:57 +0000 (15:20 -0700)
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 <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/glsl_lexer.ll

index d4d7ada1b1f00830c7e645e521b5b36dd99416c8..7c41455d9857bd6eaa395e01a54bb7b9a0d9dfac 100644 (file)
@@ -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;                     \