Hi Jakub,
On 2025-09-10 07:25, Jakub Kicinski wrote:
Sounds good!
I tried the direct void casting approach, but it still generates
warnings with GCC 14.2.0:
(void)write(fd, msg, sizeof(msg));
still shows: warning: ignoring return value of 'write'...
After further researching, I found this appears to be a known GCC/glibc
issue dating back to 2015 where direct void casting doesn't work for
functions with __warn_unused_result__. [1] Since this is a long-standing
toolchain issue and direct void casting won't suppress warning, I think
you can skip this patch. Thank you!
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
Best Regards,
Nai-Chen Cheng