(svn r8111) -Fix r8106: silence warnings
authorglx
Sat, 13 Jan 2007 21:28:46 +0000
changeset 5903 cd2d0ef3a3b9
parent 5902 906fea1535ab
child 5904 0ce0268e5f3d
(svn r8111) -Fix r8106: silence warnings
src/newgrf_config.cpp
src/openttd.cpp
--- a/src/newgrf_config.cpp	Sat Jan 13 18:55:54 2007 +0000
+++ b/src/newgrf_config.cpp	Sat Jan 13 21:28:46 2007 +0000
@@ -210,7 +210,7 @@
 	for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
 		const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
 		if (f == NULL) {
-			char buf[256], *p = buf;
+			char buf[256];
 
 			/* If we have not found the exactly matching GRF try to find one with the
 			 * same grfid, as it most likely is compatible */
--- a/src/openttd.cpp	Sat Jan 13 18:55:54 2007 +0000
+++ b/src/openttd.cpp	Sat Jan 13 21:28:46 2007 +0000
@@ -1195,6 +1195,7 @@
 	switch (gcf_res) {
 		case GCF_COMPATIBLE: _switch_mode_errorstr = STR_NEWGRF_COMPATIBLE_LOAD_WARNING; break;
 		case GCF_NOT_FOUND: _switch_mode_errorstr = STR_NEWGRF_DISABLED_WARNING; break;
+		default: break;
 	}
 
 	/* Update current year