summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-20 22:36:24 +0100
committermadmaxoft <github@xoft.cz>2014-03-20 22:36:24 +0100
commit62f84d968a71ab14f6d79696fd1312a17239ba60 (patch)
tree0fcc5c7192de84edcba547f417c9b5f1bb62077e /src/Defines.h
parentPlugins can set flying speed. (diff)
parentFixed enum checking functions not being called in generated code (diff)
downloadcuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.tar
cuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.tar.gz
cuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.tar.bz2
cuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.tar.lz
cuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.tar.xz
cuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.tar.zst
cuberite-62f84d968a71ab14f6d79696fd1312a17239ba60.zip
Diffstat (limited to 'src/Defines.h')
-rw-r--r--src/Defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 38411c69d..1a8b3fa4a 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -290,7 +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
}