summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-01-13 21:28:46 +0000
committerglx <glx@openttd.org>2007-01-13 21:28:46 +0000
commit378194d6fec40d7b8a74b57d234b967c3e4bb57f (patch)
tree29a2ddf51992858e799e757112fa5b40511540c2
parent92e42d621d24459fdfb8231e69e66562c1f5e759 (diff)
downloadopenttd-378194d6fec40d7b8a74b57d234b967c3e4bb57f.tar.xz
(svn r8111) -Fix r8106: silence warnings
-rw-r--r--src/newgrf_config.cpp2
-rw-r--r--src/openttd.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index acf519ea3..39cb9215d 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -210,7 +210,7 @@ GCF_Flags IsGoodGRFConfigList(void)
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 */
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 3640b0aee..9223d1d43 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1195,6 +1195,7 @@ bool AfterLoadGame(void)
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