svn commit: r334199 - head/usr.sbin/bhyve

Marcelo Araujo araujobsdport at gmail.com
Fri May 25 20:11:42 UTC 2018


On Sat, May 26, 2018, 4:09 AM Warner Losh <imp at bsdimp.com> wrote:

>
>
> On Fri, May 25, 2018 at 2:02 PM, Ed Maste <emaste at freebsd.org> wrote:
>
>> On 25 May 2018 at 14:26, Marcelo Araujo <araujobsdport at gmail.com> wrote:
>> >
>> >> The fact that we don't do NDEBUG builds normally does not allow us to
>> >> ignore that it exists.  It's perfectly reasonable for a user to build
>> >> with CFLAGS+=NDEBUG.  That need to work.  If code is going to fail to
>> >> handle resource errors with NDEBUG set then it needs something like
>> this
>> >> at the top of the file:
>> >
>> > Please document it in some place!
>>
>> NDEBUG is documented in assert(3). The man page should have more of an
>> explanation (and examples) of the possible pitfalls of assert()
>> though
>>
>
> NDEBUG has been documented in the assert man page since it entered Unix
> via PBW in the 7th Edition Unix from Bell Labs. It's part of the C
> standard, as well as many POSIX and SVID docs.
>

Yes I can read that! Now tell me, do we build FreeBSD without assert?

If we do, probably we can't run it without crash!


> Warner
>


More information about the svn-src-head mailing list