[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]
On Wed, Jan 09, 2002 at 03:04:17PM -0800, jdorje@xxxxxxxxxxxxxxxxxxxxx wrote:
> gcc gives a number of warnings when compiling with ./configure
> --disable-debug. The attached patch should remove these.
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/server/sanitycheck.c,v
> retrieving revision 1.13
> diff -u -r1.13 sanitycheck.c
> --- server/sanitycheck.c 2001/10/14 21:02:17 1.13
> +++ server/sanitycheck.c 2002/01/09 23:01:32
> @@ -24,6 +24,8 @@
>
> #include "sanitycheck.h"
>
> +#ifdef DEBUG
> +
> /**************************************************************************
> ...
> **************************************************************************/
> @@ -265,11 +267,14 @@
> } players_iterate_end;
> }
>
> +#endif /* DEBUG */
> +
> /**************************************************************************
> ...
> **************************************************************************/
> void sanity_check(void)
> {
> +#ifdef DEBUG
> check_specials();
> check_fow();
> check_misc();
> @@ -277,4 +282,5 @@
> check_cities();
> check_units();
> check_players();
> +#endif /* DEBUG */
> }
Why these changes? I would understand:
"#ifndef NDEBUG" but not "#ifdef DEBUG".
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
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216),
Raimar Falke <=
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Jason Short, 2002/02/02
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/02
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/03
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/03
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Ben Webb, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Jason Short, 2002/02/04
|
|