From: Michael Stapelberg Date: Sat, 26 Sep 2009 11:30:32 +0000 (+0200) Subject: Fix some compilation warnings (Thanks mxf) X-Git-Tag: 3.d~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b898058105397a94d7e5063c03033916a02de130;p=i3%2Fi3 Fix some compilation warnings (Thanks mxf) --- diff --git a/src/cfgparse.l b/src/cfgparse.l index c319137b..7880ef7c 100644 --- a/src/cfgparse.l +++ b/src/cfgparse.l @@ -1,5 +1,6 @@ %{ #include +#include #include "cfgparse.tab.h" #include diff --git a/src/cfgparse.y b/src/cfgparse.y index 7875f86e..9464e3b1 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -15,6 +15,8 @@ #include "util.h" #include "queue.h" #include "table.h" +#include "workspace.h" +#include "xcb.h" extern int yylex(void); extern FILE *yyin; diff --git a/src/config.c b/src/config.c index ffc8b7ed..b9722fc5 100644 --- a/src/config.c +++ b/src/config.c @@ -26,6 +26,10 @@ #include "table.h" #include "workspace.h" +/* prototype for src/cfgparse.y, will be cleaned up as soon as we completely + * switched to the new scanner/parser. */ +void parse_file(const char *f); + Config config; bool config_use_lexer = false;