From 452b0e96ec90e5ea250787bda4d441b51caa848b Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 24 Jul 2013 16:31:50 +0200 Subject: [PATCH] vio: Fix compile warning if compiled without testing. Reviewed-by: Andreas Schneider --- src/vio/csync_vio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vio/csync_vio.c b/src/vio/csync_vio.c index a538c9acd6..60e564098d 100644 --- a/src/vio/csync_vio.c +++ b/src/vio/csync_vio.c @@ -45,12 +45,14 @@ #include "csync_log.h" int csync_vio_init(CSYNC *ctx, const char *module, const char *args) { +#ifdef WITH_UNIT_TESTING csync_stat_t sb; + mbchar_t *mpath = NULL; +#endif char *path = NULL; char *err = NULL; csync_vio_method_t *m = NULL; csync_vio_method_init_fn init_fn; - mbchar_t *mpath = NULL; #ifdef _WIN32 mbchar_t tbuf[MAX_PATH];