summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-07-20 15:03:20 -0700
committerIan Romanick <[email protected]>2010-07-20 17:01:11 -0700
commita9bb4bcde360ef8d0a444bf1c4a7d02a8fdb5fa1 (patch)
tree076ce936edc5b96280b5b9667282746d4e8d3328 /src
parent1d7e03e48e87328ce0081021dde133921b78b406 (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.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/glcpp/glcpp-lex.l5
1 files changed, 5 insertions, 0 deletions
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; \