[Freeciv-Dev] (PR#2813) fix some compiler warnings
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients:; |
Subject: |
[Freeciv-Dev] (PR#2813) fix some compiler warnings |
From: |
"Jason Short via RT" <rt@xxxxxxxxxxxxxx> |
Date: |
Mon, 13 Jan 2003 14:47:43 -0800 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
The attached patch is needed for me to avoid three trivial compiler
warnings when compiling with DEBUG or NDEBUG.
jason
Index: client/attribute.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/attribute.c,v
retrieving revision 1.15
diff -u -r1.15 attribute.c
--- client/attribute.c 2002/09/28 01:36:19 1.15
+++ client/attribute.c 2003/01/13 22:45:24
@@ -316,8 +316,9 @@
}
if (data_length != 0) {
- bool inserted = hash_insert(attribute_hash, pkey, pvalue);
- assert(inserted);
+ if (!hash_insert(attribute_hash, pkey, pvalue)) {
+ assert(FALSE);
+ }
}
}
Index: common/player.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/player.c,v
retrieving revision 1.107
diff -u -r1.107 player.c
--- common/player.c 2003/01/05 23:24:52 1.107
+++ common/player.c 2003/01/13 22:45:25
@@ -25,7 +25,6 @@
#include "government.h"
#include "idex.h"
#include "improvement.h"
-#include "log.h"
#include "map.h"
#include "mem.h"
#include "rand.h"
Index: common/tech.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/tech.c,v
retrieving revision 1.54
diff -u -r1.54 tech.c
--- common/tech.c 2003/01/09 16:03:43 1.54
+++ common/tech.c 2003/01/13 22:45:25
@@ -22,7 +22,6 @@
#include "fcintl.h"
#include "game.h"
-#include "log.h"
#include "player.h"
#include "support.h"
#include "shared.h" /* ARRAY_SIZE */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#2813) fix some compiler warnings,
Jason Short via RT <=
|
|