Mercurial > hg > octave-nkf > gnulib-hg
changeset 17694:353b80b1cf4c
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.
Signed-off-by: Ben Walton <bdwalton@gmail.com>
author | Ben Walton <bdwalton@gmail.com> |
---|---|
date | Mon, 02 Jun 2014 20:13:54 +0100 |
parents | 53803f7bacc5 |
children | cb3ab1f4efea |
files | ChangeLog lib/rename.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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