X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_config_lexer.l;h=c86f21bc4a77738b318d068f1422e9a5ce88db12;hb=e64d870786b1564302c650e90eb9d3e5599b139e;hp=ec48dce2a6860377259a694d40069e18c51f9490;hpb=cfc7f9e2006fd93ed64399307b2b8728b03e4ec7;p=libfirm diff --git a/ir/libcore/lc_config_lexer.l b/ir/libcore/lc_config_lexer.l index ec48dce2a..c86f21bc4 100644 --- a/ir/libcore/lc_config_lexer.l +++ b/ir/libcore/lc_config_lexer.l @@ -30,10 +30,9 @@ #include "lc_parser_t.h" #include "lc_config_parser.h" -static int _lc_opt_wrap(void) -{ - return 1; -} +#define YY_NO_UNISTD_H + +static int _lc_opt_wrap(void); %} @@ -105,3 +104,11 @@ nl \n . return yytext[0]; %% + +static int _lc_opt_wrap(void) +{ + /* avoid warning */ + (void) yyunput; + (void) input; + return 1; +}