nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d28ed53db13dc0674b2260a08d5c0e074bdfec60
parent 7a8bd82af502e374f036bf756a479b9f298b5710
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed,  2 Apr 2014 20:09:16 +0000

Adding a dummy if to silence a compiler warning.  Patch by Mike Frysinger.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/nano.c | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git 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 diff --git a/src/nano.c b/src/nano.c @@ -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