bug-gnulib
[Top][All Lists]
Advanced

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

acl compiler warning


From: Eric Blake
Subject: acl compiler warning
Date: Fri, 6 Jun 2008 14:38:47 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I got this on cygwin:

copy-acl.c: In function `qcopy_acl':
copy-acl.c:42: warning: unused variable `ret'

So I'm committing the following.

>From 2be9dfe0ecaf831ca87d737ae1069a5a419d7f49 Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Fri, 6 Jun 2008 08:34:18 -0600
Subject: [PATCH] Avoid gcc warning on cygwin.

* lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
!ACL_NO_TRIVIAL]: Avoid unused variable.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog      |    6 ++++++
 lib/copy-acl.c |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f30e733..f72c568 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-06  Eric Blake  <address@hidden>
+
+       Avoid gcc warning on cygwin.
+       * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
+       !ACL_NO_TRIVIAL]: Avoid unused variable.
+
 2008-06-05  Eric Blake  <address@hidden>
 
        Be tolerant of UNKNOWN version in gnulib-tool test dir.
diff --git a/lib/copy-acl.c b/lib/copy-acl.c
index 3bb5187..d94f887 100644
--- a/lib/copy-acl.c
+++ b/lib/copy-acl.c
@@ -155,7 +155,8 @@ qcopy_acl (const char *src_name, int source_desc, const 
char *dst_name,
 
 #else
 
-  return qset_acl (dst_name, dest_desc, mode);
+  ret = qset_acl (dst_name, dest_desc, mode);
+  return ret;
 
 #endif
 }
-- 
1.5.5.1







reply via email to

[Prev in Thread] Current Thread [Next in Thread]