[Top][All Lists]

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

warning in lchown.c

From: Bruno Haible
Subject: warning in lchown.c
Date: Sat, 20 Mar 2010 15:05:33 +0100
User-agent: KMail/1.9.9

Hi Jim or Eric,

On MacOS X, with "gcc -Wall", I'm seeing this warning:

  gcc -DHAVE_CONFIG_H -I. -I..   -Wall  -g -O2 -MT lchown.o -MD -MP -MF 
.deps/lchown.Tpo -c -o lchown.o lchown.c
  lchown.c: In function 'rpl_lchown':
  lchown.c:73: warning: unused variable 'st'

Is it ok to apply this as a fix?

2010-03-20  Bruno Haible  <address@hidden>

        * lib/lchown.c (rpl_lchown): Avoid "unused variable" warning.

--- lib/lchown.c.orig   Sat Mar 20 15:04:27 2010
+++ lib/lchown.c        Sat Mar 20 15:02:51 2010
@@ -70,7 +70,9 @@
 rpl_lchown (const char *file, uid_t uid, gid_t gid)
   struct stat st;
+# endif
   bool stat_valid = false;
   int result;

reply via email to

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