[gnome-commander/ConvertWarningsToErrors] Fixe for unused variable warning



commit 2982437f2f09a2611360c8a2ae1808f4320992c4
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 22 17:41:42 2017 +0200

    Fixe for unused variable warning

 src/gnome-cmd-dir.cc |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 973710c..3e46eba 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -703,6 +703,10 @@ void gnome_cmd_dir_file_created (GnomeCmdDir *dir, const gchar *uri_str)
     GnomeVFSFileInfo *info = gnome_vfs_file_info_new ();
     GnomeVFSFileInfoOptions infoOpts = (GnomeVFSFileInfoOptions) 
(GNOME_VFS_FILE_INFO_FOLLOW_LINKS|GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
     GnomeVFSResult res = gnome_vfs_get_file_info_uri (uri, info, infoOpts);
+    if (res != GNOME_VFS_OK)
+    {
+        DEBUG ('t', "Could not retrieve file information for %s\n", uri_str);
+    }
     gnome_vfs_uri_unref (uri);
 
     GnomeCmdFile *f;
@@ -754,6 +758,10 @@ void gnome_cmd_dir_file_changed (GnomeCmdDir *dir, const gchar *uri_str)
     GnomeVFSURI *uri = f->get_uri();
     GnomeVFSFileInfo *info = gnome_vfs_file_info_new ();
     GnomeVFSResult res = gnome_vfs_get_file_info_uri (uri, info, GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
+    if (res != GNOME_VFS_OK)
+    {
+        DEBUG ('t', "Could not retrieve file information for changed file %s\n", uri_str);
+    }
     gnome_vfs_uri_unref (uri);
 
     dir->priv->needs_mtime_update = TRUE;


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