[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH 2/3] silence unused shush warning
From: |
Eitan Adler |
Subject: |
Re: [Nano-devel] [PATCH 2/3] silence unused shush warning |
Date: |
Sun, 6 Nov 2011 21:10:57 -0500 |
On Sun, Nov 6, 2011 at 6:13 PM, Mike Frysinger <address@hidden> wrote:
> On Sunday 06 November 2011 18:06:22 Eitan Adler wrote:
>> + (void) chmod(retval, die_stat->st_mode);
>> + (void) chown(retval, die_stat->st_uid, die_stat->st_gid);
> this doesn't actually work though.
In the slightly older version of gcc I had installed it didn't throw
this warning.
> nano.c: In function ‘die_save_file’:
> nano.c:713:2: warning: ignoring return value of ‘chown’, declared with
> attribute warn_unused_result [-Wunused-result]
Testing with ToT gcc I see this warning. I consider it a compiler bug,
but perhaps it is best to suppress the warning using your patch.
--
Eitan Adler
Re: [Nano-devel] [PATCH 1/3] delete unused dirnamelen variable, Eitan Adler, 2011/11/06