Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216)
Home

[Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Feb 2002 21:52:03 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Tue, Feb 05, 2002 at 09:43:34PM +0100, Reinier Post wrote:
> On Tue, Feb 05, 2002 at 04:56:53PM +0000, Eric E Moore wrote:
> 
> > Err... no.  if NDEBUG is defined (regardless of value) asserts are
> > turned off.
> > 
> >   -Eric
> 
> !  Who messed with the drinks of the ANSI committee?

This isn't a problem:

#if DEBUG < DEBUG_LEVEL_FROM_WHICH_WE_WANT_ASSERTS
#define NDEBUG
#endif

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "The very concept of PNP is a lovely dream that simply does not translate to
  reality. The confusion of manually doing stuff is nothing compared to the
  confusion of computers trying to do stuff and getting it wrong, which they
  gleefully do with great enthusiasm." 
    -- Jinx Tigr in the SDM


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