X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_config_lexer.l;h=c86f21bc4a77738b318d068f1422e9a5ce88db12;hb=e64d870786b1564302c650e90eb9d3e5599b139e;hp=9acedd9aeac4ebb83a302f951a819ba2e81b4420;hpb=de1b0c8d4f653f534a38740ad7f6803d82f2762e;p=libfirm diff --git a/ir/libcore/lc_config_lexer.l b/ir/libcore/lc_config_lexer.l index 9acedd9ae..c86f21bc4 100644 --- a/ir/libcore/lc_config_lexer.l +++ b/ir/libcore/lc_config_lexer.l @@ -21,17 +21,18 @@ License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #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); %} @@ -103,3 +104,11 @@ nl \n . return yytext[0]; %% + +static int _lc_opt_wrap(void) +{ + /* avoid warning */ + (void) yyunput; + (void) input; + return 1; +}