From 3ddbc81148d8bae386beb987195086ade9355f38 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 21 Feb 2014 11:38:10 +0100 Subject: Fix warning unused variable ap_fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable ap_fallback is used only if sssd is build with journald, but this variable was declared outside of "#ifdef WITH_JOURNALD" Reviewed-by: Pavel Březina --- src/util/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/debug.c') diff --git a/src/util/debug.c b/src/util/debug.c index 1db3693a1..b66de07b4 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -203,7 +203,6 @@ void debug_fn(const char *file, const char *format, ...) { va_list ap; - va_list ap_fallback; struct timeval tv; struct tm *tm; char datetime[20]; @@ -211,6 +210,7 @@ void debug_fn(const char *file, #ifdef WITH_JOURNALD errno_t ret; + va_list ap_fallback; if (!debug_file) { /* If we are not outputting logs to files, we should be sending them -- cgit