[gnome-commander/ConvertWarningsToErrors] Fix gcc warning about variable shadowing



commit 0afae3708e695036cff770b3fb10ebe5803f22c3
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Sun Apr 23 16:40:37 2017 +0900

    Fix gcc warning about variable shadowing

 src/gnome-cmd-file.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index d48076b..0952dc8 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -281,7 +281,7 @@ GnomeVFSResult GnomeCmdFile::chown(uid_t uid, gid_t gid)
 {
     g_return_val_if_fail (info != NULL, GNOME_VFS_ERROR_CORRUPTED_DATA);
 
-    if (uid != -1)
+    if (uid != (uid_t)-1)
         info->uid = uid;
     info->gid = gid;
 


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