]> git.wh0rd.org Git - nano.git/commitdiff
Adding a dummy if to silence a compiler warning. Patch by Mike Frysinger.
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 2 Apr 2014 20:09:16 +0000 (20:09 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Wed, 2 Apr 2014 20:09:16 +0000 (20:09 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index a62611023bfa85593fa6ca4110dbdb2bb7e76d63..39617ca0be9cfcee1d8fa30c3c45db5fb12219dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2014-04-02  Mike Frysinger  <vapier@gentoo.org>
        * doc/man/{,fr}/Makefile.am: Simplify the man rules still further.
        * .gitignore: Add 'config.cache', created by './configure -C'.
+       * src/nano.c (die_save_file): Newer gcc warns about set-but-unused
+       variables, so add a dummy if() check to kill that off.
 
 2014-03-31 Chris Allegretta <chrisa@asty.org>
        * doc/syntax/go.nanorc: basic go syntax highlighting
index 22305bb7834debd09578777d62840a94ddaae2ec..083779a8758f803a3f8f689b80e3d9f74fadb941 100644 (file)
@@ -723,6 +723,8 @@ void die_save_file(const char *die_filename
        int shush;
        shush = chmod(retval, die_stat->st_mode);
        shush = chown(retval, die_stat->st_uid, die_stat->st_gid);
+       if (shush)
+           ;
     }
 #endif