Re: NDEBUG suddenly defined???
Re: NDEBUG suddenly defined???
- Subject: Re: NDEBUG suddenly defined???
- From: Jeffrey Walton <email@hidden>
- Date: Tue, 02 Jul 2013 21:02:21 -0400
On Tue, Jul 2, 2013 at 8:50 PM, Scott Ribe <email@hidden> wrote:
>
> On Jul 2, 2013, at 3:47 PM, Fritz Anderson wrote:
>> ...
>>
>> Do a global find for NDEBUG, setting the search to include frameworks. It's possible that you're including a header that defines it.
>
> Global find was the answer. A code mod I made indirectly brought in a 3rd-party header which contained this gem:
>
> #ifndef NDEBUG
> #define NDEBUG 1
> #endif
>
> Which they "have to" do, because later in the code they have:
>
> if (!NDEBUG)
> dosomedebugbuildstuff();
>
> That's right, notice the lack of a "#". So, basically, they have constructed their header such that assert can never be used! Somebody needs a lesson the proper use of NDEBUG.
>
It looks like Java or C# code...
Third party libraries are now an OWASP item. They have to be audited
just like your app - no more "trust me, its OK". -Wall -Wextra
-Wconversion will likely bring lots of pain and misery.
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden