bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] factor.c (NDEBUG): Define this before including <assert.h>,


From: Jim Meyering
Subject: Re: [PATCH] factor.c (NDEBUG): Define this before including <assert.h>, not after.
Date: Tue, 10 Mar 2009 15:55:31 +0100

Eric Blake wrote:
>> coreutils/src/factor.c #defines NDEBUG after including <assert.h>.
>> It's supposed to be defined before.
>
> Why is factor.c even messing with NDEBUG?  The point of the gnulib assert
> module is to allow ./configure-time control over whether assertions
> are enabled, and this patch would mean that for this file, the user
> no longer has control over that option.

I suspect that I added it to disable an assertion that was
deemed too expensive for general use.  The two remaining
ones are nothing to worry about, so I had no qualms about
removing it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]