aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-17 08:32:22 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-17 08:32:22 +0000
commit50153ef7e2032a7321a02ec21370f0d8b95d870a (patch)
tree0f5a3bab8e47f1baca43cce6fbe6f98437caff4b
parentconf: improve configuration file parsing (diff)
conf: repair debug build when LOG_ENABLE_DBG=0 in config.c
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 14b599d8..c433ad02 100644
--- a/config.c
+++ b/config.c
@@ -120,7 +120,7 @@ parse_config_file(FILE *f, struct config *conf, const char *path)
[SECTION_MAIN] = &parse_section_main,
};
-#if defined(_DEBUG)
+#if defined(_DEBUG) && defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
static const char *const section_names[] = {
[SECTION_MAIN] = "main",
};