[gvfs] daemon: Fix unused variable warning



commit 22e00c940eee58d52f231d6431d81c7dd3d05b40
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Aug 4 16:52:47 2015 +0200

    daemon: Fix unused variable warning
    
    Unused variable 'no_fuse' warning is shown if fuse support is disabled.
    Declare the variable conditionally to avoid the warning.

 daemon/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/main.c b/daemon/main.c
index 4f7c327..bcadc9e 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -67,11 +67,11 @@ on_name_acquired (GDBusConnection *connection,
                   const gchar     *name,
                   gpointer         user_data)
 {
-  gboolean no_fuse = GPOINTER_TO_UINT (user_data);
-
   already_acquired = TRUE;
 
 #ifdef HAVE_FUSE
+  gboolean no_fuse = GPOINTER_TO_UINT (user_data);
+
   if (!no_fuse)
     {
       char *fuse_path;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]