What's the best way to fix warnings from unused result
Hal Murray
hmurray at megapathdsl.net
Sun Apr 7 20:27:37 UTC 2019
> Does a simple void cast work? E.g.:
> (void) strerror_r(...)
I haven't found the magic using that approach.
../../ntpd/nts.c:214:16: warning: ignoring return value of âstrerror_râ,
declared with attribute warn_unused_result [-Wunused-result]
(void) strerror_r(errno, errbuf, sizeof(errbuf));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
These are my opinions. I hate spam.
More information about the devel
mailing list