summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-23 22:03:36 +0000
committerrubidium <rubidium@openttd.org>2010-08-23 22:03:36 +0000
commitda4dc61f7619da291524c9f1dec6cff220adbdc8 (patch)
treebfb20b6721ba7c92cf10ef71318389ae3aed673c /src
parent09d109a787668e592697db9a9d8d500dc2649fe9 (diff)
downloadopenttd-da4dc61f7619da291524c9f1dec6cff220adbdc8.tar.xz
(svn r20603) -Codechange: silence some ICC warnings
Diffstat (limited to 'src')
-rw-r--r--src/misc/dbg_helpers.h2
-rw-r--r--src/order_backup.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/dbg_helpers.h b/src/misc/dbg_helpers.h
index 379b2e82e..c83086f2a 100644
--- a/src/misc/dbg_helpers.h
+++ b/src/misc/dbg_helpers.h
@@ -79,7 +79,7 @@ inline CStrA ComposeNameT(E value, T &t, const char *t_unk, E val_inv, const cha
} else {
for (size_t i = 0; i < ArrayT<T>::length; i++) {
if ((value & (1 << i)) == 0) continue;
- out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t[i]);
+ out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), (const char*)t[i]);
value &= ~(E)(1 << i);
}
if (value != 0) out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t_unk);
diff --git a/src/order_backup.h b/src/order_backup.h
index 15a9d0bc1..81d485eb7 100644
--- a/src/order_backup.h
+++ b/src/order_backup.h
@@ -29,7 +29,7 @@ typedef Pool<OrderBackup, OrderBackupID, 1, 256> OrderBackupPool;
extern OrderBackupPool _order_backup_pool;
/** Flag to pass to the vehicle construction command when an order should be preserved. */
-static const uint32 MAKE_ORDER_BACKUP_FLAG = 1 << 31;
+static const uint32 MAKE_ORDER_BACKUP_FLAG = 1U << 31;
/**
* Data for backing up an order of a vehicle so it can be