* lib/rename.c (rpl_rename): In the non-Win32 variant of rpl_rename,
it is possible that dst_exists may be set but not used. Mark it with
the unused attribute to avoid compiler warnings.
Signed-off-by: Ben Walton <bdwalton@gmail.com>
+2014-06-03 Ben Walton <bdwalton@gmail.com>
+
+ rename: avoid unused-but-set-variable compiler warning
+ * lib/rename.c (rpl_rename): In the non-Win32 variant of rpl_rename,
+ it is possible that dst_exists may be set but not used. Mark it with
+ the unused attribute to avoid compiler warnings.
+
2014-06-02 Ben Walton <bdwalton@gmail.com>
rename: mark a label as potentially unused
char *dst_temp = (char *) dst;
bool src_slash;
bool dst_slash;
- bool dst_exists;
+ bool dst_exists _GL_UNUSED;
int ret_val = -1;
int rename_errno = ENOTDIR;
struct stat src_st;