Re: __attribute__((warn_unused_result)) for NetBSD?
Aleksey Cheusov <[email protected]> Sun, 28 Sep 2008 12:32:06 +0300
| Newsgroups | gmane.os.netbsd.devel.general |
|---|---|
| Message-ID | <[email protected]> |
> Meanwhile, code that uses the return value without checking it for > error, which *is* a common mistake, is not detected You again make the the same mistake. You again mix up necessaty and sufficiency. The fact that assigmnent of return value is not sufficient for error detection doesn't prove that assignment itself is optional and may be ommited. > So adding > warn-unused-result doesn't accomplish anything in practice. I see. Nobody of you want to fix bmake. This is because we are in completely different positions about very basics in programming. While I think "everything may failure everywhere anytime", you think "the check does not actually catch any real errors in practice". No problem. Workaround for bmake inside pkgsrc: WARNS=3 -- Best regards, Aleksey Cheusov.