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 <br...@clisp.org> * 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 @@ int rpl_lchown (const char *file, uid_t uid, gid_t gid) { +# if CHOWN_CHANGE_TIME_BUG struct stat st; +# endif bool stat_valid = false; int result;