(svn r6627) -Fix r6624: fixed some warnings
authorbjarni
Tue, 03 Oct 2006 16:05:11 +0000
changeset 4715 7ab95d47d2eb
parent 4714 a37c0478a784
child 4716 d9ca1be9d04b
(svn r6627) -Fix r6624: fixed some warnings
Now it happened again. Somebody got warnings, that I didn't get... I will look into this issue
order.h
order_cmd.c
order_gui.c
--- a/order.h	Tue Oct 03 15:05:27 2006 +0000
+++ b/order.h	Tue Oct 03 16:05:11 2006 +0000
@@ -191,6 +191,8 @@
 	order.dest    = GB(packed, 16, 16);
 	order.next    = NULL;
 	order.index   = 0; // avoid compiler warning
+	order.refit_cargo   = CT_INVALID;
+	order.refit_subtype = 0;
 	return order;
 }
 
--- a/order_cmd.c	Tue Oct 03 15:05:27 2006 +0000
+++ b/order_cmd.c	Tue Oct 03 16:05:11 2006 +0000
@@ -57,6 +57,9 @@
 		order.flags = 0;
 	}
 
+	order.refit_cargo   = CT_INVALID;
+	order.refit_subtype = 0;
+
 	return order;
 }
 
@@ -73,6 +76,8 @@
 	order.dest  = GB(packed, 8, 8);
 	order.next  = NULL;
 	order.index = 0; // avoid compiler warning
+	order.refit_cargo   = CT_INVALID;
+	order.refit_subtype = 0;
 	return order;
 }
 
--- a/order_gui.c	Tue Oct 03 15:05:27 2006 +0000
+++ b/order_gui.c	Tue Oct 03 16:05:11 2006 +0000
@@ -215,6 +215,8 @@
 	Order order;
 	order.next  = NULL;
 	order.index = 0;
+	order.refit_cargo   = CT_INVALID;
+	order.refit_subtype = 0;
 
 	// check depot first
 	if (_patches.gotodepot) {