https://bugs.exim.org/show_bug.cgi?id=2368
Bug ID: 2368
Summary: Exim 4.91-RC4 compile warning for unused result
Product: Exim
Version: 4.91
Hardware: x86
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Unfiled
Assignee: nigel@???
Reporter: mike@???
CC: exim-dev@???
Exim 4.91-RC4 on Ubuntu 16.04 LTS generates warning for un-used result in
SIGUSR1 handler.
Proposed fix:
root@relay2:~/exim-4.92-RC4/src# diff exim.c exim.c-orig
247,252c247,250
< if (fd >= 0)
< {
< /* hack to avoid GCC warning for unused result */
< ssize_t dummy1 = write(fd, process_info, process_info_len);
< int dummy2 = close(fd);
< }
---
> if (fd < 0) return;
>
> (void)write(fd, process_info, process_info_len);
> (void)close(fd);
root@relay2:~/exim-4.92-RC4/src#
--
You are receiving this mail because:
You are on the CC list for the bug.