diff options
author | Carl Worth <cworth@cworth.org> | 2010-07-20 15:03:20 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-07-20 15:51:48 -0700 |
commit | 3f8f90d14096fd352fdc6d139fdec34d4b095239 (patch) | |
tree | d98313f618d5645a68430d107f706262a02697ff | |
parent | 7ad642cf27626b65b3c894e151d87306cfaa9f6a (diff) |
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.
-rw-r--r-- | src/glsl/glcpp/glcpp-lex.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l index 6773832f29..29b2769397 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; \ |