Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] gtk-2 wont compile
Home

[Freeciv-Dev] gtk-2 wont compile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] gtk-2 wont compile
From: Paul Zastoupil <paul@xxxxxxxxxxxxx>
Date: Tue, 29 Jul 2003 10:50:36 -0700

I think its just a scope problem:

citydlg.c: In function `sell_callback_response':
citydlg.c:2492: `pdialog' undeclared (first use in this function)
citydlg.c:2492: (Each undeclared identifier is reported only once
citydlg.c:2492: for each function it appears in.)


Index: client/gui-gtk-2.0/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/citydlg.c,v
retrieving revision 1.57
diff -u -r1.57 citydlg.c
--- client/gui-gtk-2.0/citydlg.c        2003/07/29 15:16:31     1.57
+++ client/gui-gtk-2.0/citydlg.c        2003/07/29 17:49:21
@@ -2482,8 +2482,8 @@
 *****************************************************************/
 static void sell_callback_response(GtkWidget *w, gint response,
gpointer data)
 {
+  struct city_dialog *pdialog = data;
   if (response == GTK_RESPONSE_YES) {
-    struct city_dialog *pdialog = data;
  
     city_sell_improvement(pdialog->pcity, pdialog->sell_id);
   }

-- 
Paul Zastoupil


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] gtk-2 wont compile, Paul Zastoupil <=