Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Change to /usr/src/usr.bin/lex/flex.skl



Hello,
Not sure, but the following change in /usr/src/usr.bin/lex/flex.skl

--- org/flex.skl        2009-04-27 14:49:00 +0000
+++ flex.skl    2008-02-28 03:15:16 +0000
@@ -989,9 +989,9 @@
 %-
 #ifndef YY_NO_INPUT
 #ifdef __cplusplus
-static int yyinput()
+static int yyinput(void)
 #else
-static int input()
+static int input(void)
 #endif
 %+
 int yyFlexLexer::yyinput()

helped me compile some stuff which otherwise refused to compile
generating messages like this one

dependall ===> sbin/cgdconfig
    compile  cgdconfig/cgdlex.o
cc1: warnings being treated as errors
cgdlex.c:1283: warning: function declaration isn't a prototype
--- cgdlex.o ---
*** [cgdlex.o] Error code 1
1 error
nbmake: stopped in /n4/usr/src/sbin/cgdconfig


Home | Main Index | Thread Index | Old Index