From: Wayne Davison Date: Sun, 19 May 2013 21:31:27 +0000 (+0000) Subject: Fixed unused variable warnings in free_stat_x. X-Git-Tag: v3.1.0pre1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4442f8037bf32fb549dc7074af643d66710ab9d5;p=thirdparty%2Frsync.git Fixed unused variable warnings in free_stat_x. --- diff --git a/ifuncs.h b/ifuncs.h index e823e95d..c0e45bbe 100644 --- a/ifuncs.h +++ b/ifuncs.h @@ -89,13 +89,18 @@ init_stat_x(stat_x *sx_p) static inline void free_stat_x(stat_x *sx_p) { - extern int preserve_acls, preserve_xattrs; #ifdef SUPPORT_ACLS + { + extern int preserve_acls; if (preserve_acls) free_acl(sx_p); + } #endif #ifdef SUPPORT_XATTRS + { + extern int preserve_xattrs; if (preserve_xattrs) free_xattr(sx_p); + } #endif }