From: Michael Stapelberg Date: Tue, 29 Sep 2009 20:47:37 +0000 (+0200) Subject: Fix warnings in lexer/parser X-Git-Tag: 3.d~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6aa0f965d2f24c458145b2d9f40a13240fcf4a03;p=i3%2Fi3 Fix warnings in lexer/parser --- diff --git a/src/cfgparse.l b/src/cfgparse.l index c54d346c..afe5c84e 100644 --- a/src/cfgparse.l +++ b/src/cfgparse.l @@ -1,3 +1,6 @@ +%option nounput +%option noinput + %{ /* * vim:ts=8:expandtab diff --git a/src/cfgparse.y b/src/cfgparse.y index a1c7aeef..8a358454 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -22,8 +22,12 @@ #include "workspace.h" #include "xcb.h" + +typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yylex(void); +extern int yyparse(void); extern FILE *yyin; +YY_BUFFER_STATE yy_scan_string(const char *); static struct bindings_head *current_bindings;