aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 22:48:34 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 22:48:34 +0200
commit45df3e5e548d1d1f7f128c54291168efd3669b52 (patch)
treee548f8842e8c7515ec02a43b1e29731935f3b763
parent468b7d3aeaa0e2de51814263a1ca19d89128f00b (diff)
downloadmpd-45df3e5e548d1d1f7f128c54291168efd3669b52.tar.gz
mpd-45df3e5e548d1d1f7f128c54291168efd3669b52.tar.xz
mpd-45df3e5e548d1d1f7f128c54291168efd3669b52.zip
main: fix "unused local variable" warning
The variables "success" and "error" are only used if SQLite support is enabled.
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c19fc9324..e83cd3e17 100644
--- a/src/main.c
+++ b/src/main.c
@@ -231,8 +231,10 @@ int main(int argc, char *argv[])
Options options;
clock_t start;
bool create_db;
+#ifdef ENABLE_SQLITE
bool success;
GError *error = NULL;
+#endif
daemonize_close_stdin();