summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-19 20:06:12 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-19 20:06:12 +0100
commit363c92ed534d5cffe164079359b62a0768bc0f80 (patch)
tree0f1d506784d30e71eba9616a941aa73fdf228252 /src/Defines.h
parentFixed tolua emitting isnumber insteand of is<Enum> (diff)
downloadcuberite-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/Defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 7f7a2eeb1..1a8b3fa4a 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -290,6 +290,10 @@ inline AString BlockFaceToString(eBlockFace a_BlockFace)
case BLOCK_FACE_ZP: return "BLOCK_FACE_ZP";
case BLOCK_FACE_NONE: return "BLOCK_FACE_NONE";
}
+ // clang optimisises this line away then warns that it has done so.
+ #if !defined(__clang__)
+ return Printf("Unknown BLOCK_FACE: %d", a_BlockFace);
+ #endif
}