Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10432) GTK: Remove two unused variables from butt_down
Home

[Freeciv-Dev] (PR#10432) GTK: Remove two unused variables from butt_down

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10432) GTK: Remove two unused variables from butt_down_mapcanvas
From: "Egor Vyscrebentsov via RT" <evyscr@xxxxxxxxx>
Date: Tue, 5 Oct 2004 09:53:49 -0700
Reply-to: RT_CorrespondAddressNotSet@xxxxxxxxxxxxxx

<URL: http://RT::WebBaseURL.not.configured:80/Ticket/Display.html?id=10432 >

CVS 20041005 19:47 +0400; GTK client

GTK client does not compile with `--enable-debug=yes`
because of two unused variables in butt_down_mapcanvas()
[client/gui-gtk/mapctrl.c]

Attached patch seems to fix this problem for me.

Thanks, evyscr.
diff -urN freeciv-orig/client/gui-gtk/mapctrl.c freeciv/client/gui-gtk/mapctrl.c
--- freeciv-orig/client/gui-gtk/mapctrl.c       2004-10-02 20:13:57 +0400
+++ freeciv/client/gui-gtk/mapctrl.c    2004-10-05 19:49:47 +0400
@@ -207,7 +207,6 @@
 **************************************************************************/
 gint butt_down_mapcanvas(GtkWidget *w, GdkEventButton *ev)
 {
-  int xtile, ytile;
   struct tile *ptile = NULL;
   struct city *pcity = NULL;
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10432) GTK: Remove two unused variables from butt_down_mapcanvas, Egor Vyscrebentsov via RT <=