diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-19 20:06:12 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-19 20:06:12 +0100 |
commit | 363c92ed534d5cffe164079359b62a0768bc0f80 (patch) | |
tree | 0f1d506784d30e71eba9616a941aa73fdf228252 /src/Scoreboard.cpp | |
parent | Fixed tolua emitting isnumber insteand of is<Enum> (diff) | |
download | cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.tar cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.tar.gz cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.tar.bz2 cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.tar.lz cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.tar.xz cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.tar.zst cuberite-363c92ed534d5cffe164079359b62a0768bc0f80.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Scoreboard.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Scoreboard.cpp b/src/Scoreboard.cpp index cfeb1d619..4c89ce265 100644 --- a/src/Scoreboard.cpp +++ b/src/Scoreboard.cpp @@ -30,7 +30,13 @@ AString cObjective::TypeToString(eType a_Type) case otStatBlockMine: return "stat.mineBlock"; case otStatEntityKill: return "stat.killEntity"; case otStatEntityKilledBy: return "stat.entityKilledBy"; + + // clang optimisises this line away then warns that it has done so. + #if !defined(__clang__) + default: return ""; + #endif } + } |