Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: new civworld patch
Home

[Freeciv-Dev] Re: new civworld patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>
Cc: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: new civworld patch
From: Mike Kaufman <mkaufman@xxxxxxxxxxxxxx>
Date: Sun, 10 Feb 2002 10:11:44 -0600

ugh. A new patch is on the ftp site.
(or if you've already dled it, apply Christian's patch)

Just out of curiosity, what compiler and/or extra warnings are you
using?
gcc-3.0 doesn't complain with the standard freeciv Makefile warnings...

-mike

On Sun, Feb 10, 2002 at 12:47:22PM +0100, Christian Knoke wrote:
> On Sun, Feb 10, 2002 at 01:29:17AM -0600, Mike Kaufman wrote:
> > I've put a new civworld patch in incoming.
> 
> This doesn't compile for me. With the attached patch, it does.
> 
> edit_nationdlg.c: In function Create_edit_nation_dialog':         
> edit_nationdlg.c:237: parse error before Struct'                  
> edit_nationdlg.c:239: Pdialog' undeclared (first use in this function)
> edit_nationdlg.c:239: (Each undeclared identifier is reported only once
> edit_nationdlg.c:239: for each function it appears in.)
> make[2]: *** [edit_nationdlg.o] Error 1
> make[2]: Leaving directory /home/chris/freeciv/civworld/civworld'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory /home/chris/freeciv/civworld'
> make: *** [all-recursive-am] Error 2
> 
> Christian
> 
> -- 
> http://www.enter.de/~c.knoke/  * * * * * * * * * * * * * * *
> * * * * * * * * *  Ceterum censeo Microsoft esse dividendum.

> --- edit_nationdlg.c.orig     Sun Feb 10 12:34:27 2002
> +++ edit_nationdlg.c  Sun Feb 10 12:36:02 2002
> @@ -224,6 +224,8 @@
>    GSList    *cgroup = NULL;
>    struct player *plr;
>    char buffer[200];
> +  struct edit_nation_dlg *pdialog = fc_malloc(sizeof(struct 
> edit_nation_dlg)); 
> +
>  
>    /* first time */
>    if (!registry_initialized) {
> @@ -233,8 +235,6 @@
>      }
>      registry_initialized = 1;
>    }
> -
> -  struct edit_nation_dlg *pdialog = fc_malloc(sizeof(struct 
> edit_nation_dlg)); 
>  
>    pdialog->sorted_races_list   = NULL;
>    pdialog->selected_nation     = -1;



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