summaryrefslogtreecommitdiff
path: root/src/mesa/program/program_lexer.l
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-07-21 12:49:01 -0700
committerCarl Worth <cworth@cworth.org>2010-07-21 12:49:01 -0700
commit3c716a7ec2cabfc18a2506f9db655406f8c64fb0 (patch)
treed9049a654844cde2d5c60c5621e3fb3a7142655f /src/mesa/program/program_lexer.l
parentaa9003e20e91213bb97269bcd35961f0c2e9791b (diff)
Avoid warnings in flex-generated code.
Add declarations for two functions generated in the flex ouput. It would be nicer if flex simply declared these generated functions as static, but for now we can at least avoid the warning this way.
Diffstat (limited to 'src/mesa/program/program_lexer.l')
-rw-r--r--src/mesa/program/program_lexer.l6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/program/program_lexer.l b/src/mesa/program/program_lexer.l
index 5730c6d761..a912517165 100644
--- a/src/mesa/program/program_lexer.l
+++ b/src/mesa/program/program_lexer.l
@@ -140,6 +140,12 @@ handle_ident(struct asm_parser_state *state, const char *text, YYSTYPE *lval)
} while(0);
#define YY_EXTRA_TYPE struct asm_parser_state *
+
+/* Flex defines a couple of functions with no declarations nor the
+static keyword. Declare them here to avoid a compiler warning. */
+int yyget_column (yyscan_t yyscanner);
+void yyset_column (int column_no , yyscan_t yyscanner);
+
%}
num [0-9]+