[illumos-Developer] [REVIEW] 1279 err(3C) should be marked __NORETURN
Richard Lowe
richlowe at richlowe.net
Wed Jul 27 16:40:27 PDT 2011
1279 err(3C) should be marked __NORETURN
webrev:
http://richlowe.net/webrevs/il_1279
err* and friends exit, and thus don't return. GCC would prefer to
know this, so it doesn't warn "control reaches end of non-void
function" when that's really not the case. I introduced such a
warning into jdtrace some months ago, and didn't spot it because it is
unfortunately not built with the shadow enabled (it seems we only
shadow compilation to intermediate objects).
Thanks,
-- Rich
More information about the Developer
mailing list