Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] (PR#3401) compiler warnings (when compiling with debugging
Home

[Freeciv-Dev] (PR#3401) compiler warnings (when compiling with debugging

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: rt@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#3401) compiler warnings (when compiling with debugging)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Feb 2003 12:22:53 -0800

When I compile with debugging, I get some warnings.  The attached patch 
fixes these (I think one of them is not specific to debugging - and is a 
genuine bug).

jason

Index: client/gui-gtk-2.0/plrdlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/plrdlg.c,v
retrieving revision 1.14
diff -u -r1.14 plrdlg.c
--- client/gui-gtk-2.0/plrdlg.c 2003/01/05 20:51:37     1.14
+++ client/gui-gtk-2.0/plrdlg.c 2003/02/12 20:18:37
@@ -40,7 +40,6 @@
 #include "spaceshipdlg.h"
 #include "colors.h"
 #include "graphics.h"
-#include "log.h"
 
 #include "plrdlg.h"
 
Index: client/gui-sdl/cma_fe.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-sdl/cma_fe.c,v
retrieving revision 1.3
diff -u -r1.3 cma_fe.c
--- client/gui-sdl/cma_fe.c     2002/12/30 21:40:50     1.3
+++ client/gui-sdl/cma_fe.c     2003/02/12 20:18:37
@@ -23,7 +23,6 @@
 #include "fcintl.h"
 #include "events.h"
 #include "game.h"
-#include "log.h"
 
 #include "gui_mem.h"
 
Index: client/gui-sdl/dialogs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-sdl/dialogs.c,v
retrieving revision 1.10
diff -u -r1.10 dialogs.c
--- client/gui-sdl/dialogs.c    2003/02/02 20:49:19     1.10
+++ client/gui-sdl/dialogs.c    2003/02/12 20:18:40
@@ -1838,7 +1838,7 @@
   
   pWindow->action = spy_steal_dlg_window_callback;
   set_wstate( pWindow , WS_NORMAL );
-  w = MAX( w , pWindow->size.w + 8 );
+  w = MAX(0, pWindow->size.w + 8);
   
   add_to_gui_list(ID_CARAVAN_DLG_WINDOW, pWindow);
   pDiplomat_Dlg->pEndWidgetList = pWindow;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#3401) compiler warnings (when compiling with debugging), Jason Short <=