tech-misc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: __attribute__((warn_unused_result)) for NetBSD?



> 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.


Home | Main Index | Thread Index | Old Index