Re: [exim] Patch for Exim 4.91 compile warning

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Patch for Exim 4.91 compile warning
On 16/01/2019 14:31, Heiko Schlittermann via Exim-users wrote:
> Mike Tubby via Exim-users <exim-users@???> (Mi 16 Jan 2019 14:58:07 CET):
>> When compiling Exim 4.91 on Ubuntu 16.04.5 LTS I get a gcc warning in the
>> USR1 signal handler:
>>
>> gcc exim.c
>> exim.c: In function ‘usr1_handler’:
>> exim.c:242:1: warning: ignoring return value of ‘write’, declared with
>> attribute warn_unused_result [-Wunused-result]
>>  (void)write(fd, process_info, process_info_len);
>>  ^


We have in the past refused to bow to such pressure for
pointless attempts to silence stupid static analysis
warnings.

There is _zero_ that can usefully be done with that return
value.
--
Cheers,
Jeremy