From 6aa0f965d2f24c458145b2d9f40a13240fcf4a03 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 29 Sep 2009 22:47:37 +0200 Subject: [PATCH] Fix warnings in lexer/parser --- src/cfgparse.l | 3 +++ src/cfgparse.y | 4 ++++ 2 files changed, 7 insertions(+) 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; -- 2.39.5