From b898058105397a94d7e5063c03033916a02de130 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 26 Sep 2009 13:30:32 +0200 Subject: [PATCH] Fix some compilation warnings (Thanks mxf) --- src/cfgparse.l | 1 + src/cfgparse.y | 2 ++ src/config.c | 4 ++++ 3 files changed, 7 insertions(+) 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; -- 2.39.5