From e3e3f655ee7dcde7e1540612b12382851570d4b6 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Fri, 27 May 2016 21:48:38 +0200 Subject: [PATCH] tweaks: use an available macro to silence a compiler warning --- src/nano.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/nano.c b/src/nano.c index 5dff7698..4b535a6f 100644 --- a/src/nano.c +++ b/src/nano.c @@ -696,11 +696,9 @@ void die_save_file(const char *die_filename * but don't worry if it fails because we're supposed to be bailing as * fast as possible. */ if (die_stat) { - int shush; - shush = chmod(targetname, die_stat->st_mode); - shush = chown(targetname, die_stat->st_uid, die_stat->st_gid); - if (shush) - ; + IGNORE_CALL_RESULT(chmod(targetname, die_stat->st_mode)); + IGNORE_CALL_RESULT(chown(targetname, die_stat->st_uid, + die_stat->st_gid)); } #endif -- GitLab