diff -burp flex-2.5.4/initscan.c flex-2.5.4-iniscan/initscan.c
--- flex-2.5.4/initscan.c 2006-01-13 16:16:52.000000000 +0100
+++ flex-2.5.4-iniscan/initscan.c 2006-02-02 18:15:26.000000000 +0100
@@ -1,5 +1,5 @@
#line 2 "scan.c"
-/* A lexical scanner generated by flex */
+/* A lexical scanner generated by flex*/
/* Scanner skeleton version:
* $Header: /home/fedora/jkeating/pkgs/rpms/compat-flex/devel/flex-2.5.4a2-iniscan.patch,v 1.1 2007/03/21 18:11:00 pmachata Exp $
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <unistd.h>
+
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
@@ -134,6 +135,15 @@ extern FILE *yyin, *yyout;
#define unput(c) yyunput( c, yytext_ptr )
+/* Some routines like yy_flex_realloc() are emitted as static but are
+ not called by all lexers. This generates warnings in some compilers,
+ notably GCC. Arrange to suppress these. */
+#ifdef __GNUC__
+#define YY_MAY_BE_UNUSED __attribute__((unused))
+#else
+#define YY_MAY_BE_UNUSED
+#endif
+
/* The following is because we cannot portably get our hands on size_t
* (without autoconf's help, which isn't available because we want
* flex-generated scanners to compile on their own).
@@ -240,7 +250,7 @@ YY_BUFFER_STATE yy_scan_string YY_PROTO(
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
-static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
+static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
@@ -1328,7 +1338,7 @@ char *yytext;
#define OPTION 17
#define LINEDIR 18
-#line 1333 "scan.c"
+#line 1342 "scan.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
@@ -1479,7 +1489,7 @@ YY_MALLOC_DECL
YY_DECL
{
register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
+ register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
#line 94 "scan.l"
@@ -1493,7 +1503,7 @@ YY_DECL
Char nmdef[MAXLINE], myesc();
-#line 1498 "scan.c"
+#line 1507 "scan.c"
if ( yy_init )
{
@@ -2731,7 +2741,7 @@ YY_RULE_SETUP
#line 650 "scan.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
-#line 2736 "scan.c"
+#line 2745 "scan.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(SECT2):
case YY_STATE_EOF(CODEBLOCK):
@@ -3200,8 +3210,7 @@ static int input()
return c;
}
-#endif /* ifndef YY_NO_INPUT */
-
+#endif /* YY_NO_INPUT */
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
@@ -3312,6 +3321,7 @@ YY_BUFFER_STATE b;
}
+
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else