Author: jkim
Date: Thu May 23 05:42:35 2013
New Revision: 250926
URL: http://svnweb.freebsd.org/changeset/base/250926

Log:
  Work around build breakages with GCC 4.2.
  
  Reported by:  tinderbox

Modified:
  head/contrib/openbsm/bin/auditdistd/token.l
  head/usr.bin/ar/acplex.l
  head/usr.bin/bc/scan.l
  head/usr.bin/m4/tokenizer.l
  head/usr.bin/mklocale/lex.l
  head/usr.sbin/bluetooth/bthidd/lexer.l
  head/usr.sbin/config/lang.l
  head/usr.sbin/jail/jaillex.l

Modified: head/contrib/openbsm/bin/auditdistd/token.l
==============================================================================
--- head/contrib/openbsm/bin/auditdistd/token.l Thu May 23 01:37:34 2013        
(r250925)
+++ head/contrib/openbsm/bin/auditdistd/token.l Thu May 23 05:42:35 2013        
(r250926)
@@ -52,6 +52,7 @@ int depth;
 int lineno;
 
 #define        DP      do { } while (0)
+#define        YY_DECL int yylex(void)
 %}
 
 %option noinput

Modified: head/usr.bin/ar/acplex.l
==============================================================================
--- head/usr.bin/ar/acplex.l    Thu May 23 01:37:34 2013        (r250925)
+++ head/usr.bin/ar/acplex.l    Thu May 23 05:42:35 2013        (r250926)
@@ -40,6 +40,8 @@ int lineno = 1;
 
 int    yylex(void);
 
+#define        YY_DECL int yylex(void)
+
 %}
 
 %option nounput

Modified: head/usr.bin/bc/scan.l
==============================================================================
--- head/usr.bin/bc/scan.l      Thu May 23 01:37:34 2013        (r250925)
+++ head/usr.bin/bc/scan.l      Thu May 23 05:42:35 2013        (r250926)
@@ -46,6 +46,7 @@ static void    init_strbuf(void);
 static void     add_str(const char *);
 static int      bc_yyinput(char *, int);
 
+#define YY_DECL        int yylex(void)
 #define YY_NO_INPUT
 #undef YY_INPUT
 #define YY_INPUT(buf,retval,max) \

Modified: head/usr.bin/m4/tokenizer.l
==============================================================================
--- head/usr.bin/m4/tokenizer.l Thu May 23 01:37:34 2013        (r250925)
+++ head/usr.bin/m4/tokenizer.l Thu May 23 05:42:35 2013        (r250926)
@@ -31,6 +31,8 @@ extern int32_t yylval;
 int32_t number(void);
 int32_t parse_radix(void);
 extern int yylex(void);
+
+#define        YY_DECL int yylex(void)
 %}
 
 delim  [ \t\n]

Modified: head/usr.bin/mklocale/lex.l
==============================================================================
--- head/usr.bin/mklocale/lex.l Thu May 23 01:37:34 2013        (r250925)
+++ head/usr.bin/mklocale/lex.l Thu May 23 05:42:35 2013        (r250926)
@@ -47,6 +47,8 @@ __FBSDID("$FreeBSD$");
 #include "ldef.h"
 #include "y.tab.h"
 #include "extern.h"
+
+#define        YY_DECL int yylex(void)
 %}
 
 ODIGIT [0-7]

Modified: head/usr.sbin/bluetooth/bthidd/lexer.l
==============================================================================
--- head/usr.sbin/bluetooth/bthidd/lexer.l      Thu May 23 01:37:34 2013        
(r250925)
+++ head/usr.sbin/bluetooth/bthidd/lexer.l      Thu May 23 05:42:35 2013        
(r250926)
@@ -37,6 +37,8 @@
 #include "parser.h"
 
        int     yylex   (void);
+
+#define        YY_DECL int yylex(void)
 %}
 
 %option yylineno noyywrap nounput noinput

Modified: head/usr.sbin/config/lang.l
==============================================================================
--- head/usr.sbin/config/lang.l Thu May 23 01:37:34 2013        (r250925)
+++ head/usr.sbin/config/lang.l Thu May 23 05:42:35 2013        (r250926)
@@ -93,6 +93,7 @@ unsigned int octal(const char *);
 unsigned int hex(const char *);
 int yyerror(const char *);
 
+#define YY_DECL int yylex(void)
 %}
 
 %option nounput

Modified: head/usr.sbin/jail/jaillex.l
==============================================================================
--- head/usr.sbin/jail/jaillex.l        Thu May 23 01:37:34 2013        
(r250925)
+++ head/usr.sbin/jail/jaillex.l        Thu May 23 05:42:35 2013        
(r250926)
@@ -42,6 +42,8 @@ static ssize_t text2lval(size_t triml, s
 
 static int instr;
 static int lineno = 1;
+
+#define YY_DECL int yylex(void)
 %}
 
 %option noinput
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to