glcpp-lex: Declare some generated functions to eliminate compiler warnings.
authorCarl Worth <cworth@cworth.org>
Tue, 20 Jul 2010 22:03:20 +0000 (15:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 21 Jul 2010 00:01:11 +0000 (17:01 -0700)
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.

src/glsl/glcpp/glcpp-lex.l

index 6773832f29d67566bdef98b82c7a2b356b5db2be..29b276939743d600db5f510aa1dcf29f6981a316 100644 (file)
 #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;                                       \