mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r20603) -Codechange: silence some ICC warnings
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user