From: Carl Worth Date: Tue, 20 Jul 2010 22:03:20 +0000 (-0700) Subject: glcpp-lex: Declare some generated functions to eliminate compiler warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9bb4bcde360ef8d0a444bf1c4a7d02a8fdb5fa1;p=mesa.git glcpp-lex: Declare some generated functions to eliminate compiler warnings. It's really a bug in flex that these functions are generated with neither a declaration nor the 'static' keyword, but we can at least avoid the warnings this way. --- diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l index 6773832f29d..29b27693974 100644 --- a/src/glsl/glcpp/glcpp-lex.l +++ b/src/glsl/glcpp/glcpp-lex.l @@ -29,6 +29,11 @@ #include "glcpp.h" #include "glcpp-parse.h" +/* Flex annoyingly generates some functions without making them + * static. Let's declare them here. */ +int glcpp_get_column (yyscan_t yyscanner); +void glcpp_set_column (int column_no , yyscan_t yyscanner); + #define YY_USER_ACTION \ do { \ yylloc->source = 0; \