<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 17, 2009, at 9:37 AM, Ben Laurie wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">On Tue, Feb 17, 2009 at 4:45 PM, Ted Kremenek <<a href="mailto:kremenek@apple.com">kremenek@apple.com</a>> wrote:<br><blockquote type="cite">Hi Ben,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The analyzer knows that all functions with the 'noreturn' attribute don't<br></blockquote><blockquote type="cite">return.  What does the assert macro expand to on FreeBSD?<br></blockquote><br>The problem is that __assert does not have noreturn set on FreeBSD.<br>I'm in the process of getting that fixed - but as an apprentice<br>FreeBSD committer that's probably harder for me than anyone else, so<br>it may take a while :-)<br><br>In the meantime, I think the right answer is for me to patch<br>/usr/include/assert.h.</span></blockquote></div><br><div>__assert isn't the only "panic" function that isn't marked with noreturn.  Since it occurs so frequently, I can just add it to the list of hard-coded functions that the analyzer knows about.  That will also make the analyzer more applicable to earlier versions of FreeBSD (should you want to see how far a bug goes back, for example).</div></body></html>