summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/FastNBT.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-26 22:53:11 +0200
committermadmaxoft <github@xoft.cz>2014-09-26 22:53:39 +0200
commit0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac (patch)
tree4e7acf1f1d2cc32a9c7bb3cbb0256e379c9175b9 /src/WorldStorage/FastNBT.h
parentUpdated Core (diff)
downloadcuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.tar
cuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.tar.gz
cuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.tar.bz2
cuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.tar.lz
cuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.tar.xz
cuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.tar.zst
cuberite-0d83477540d9eb62c7a4f22f1f5f2b8cd79363ac.zip
Diffstat (limited to 'src/WorldStorage/FastNBT.h')
-rw-r--r--src/WorldStorage/FastNBT.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WorldStorage/FastNBT.h b/src/WorldStorage/FastNBT.h
index ebf99103f..c6225eacf 100644
--- a/src/WorldStorage/FastNBT.h
+++ b/src/WorldStorage/FastNBT.h
@@ -213,8 +213,8 @@ public:
// If your platform produces a compiler error here, you'll need to add code that manually decodes 32-bit floats
char Check1[5 - sizeof(float)]; // Fails if sizeof(float) > 4
char Check2[sizeof(float) - 3]; // Fails if sizeof(float) < 4
- UNUSED(Check1);
- UNUSED(Check2);
+ UNUSED_VAR(Check1);
+ UNUSED_VAR(Check2);
Int32 i = GetBEInt(m_Data + m_Tags[(size_t)a_Tag].m_DataStart);
float f;
@@ -229,8 +229,8 @@ public:
// If your platform produces a compiler error here, you'll need to add code that manually decodes 64-bit doubles
char Check1[9 - sizeof(double)]; // Fails if sizeof(double) > 8
char Check2[sizeof(double) - 7]; // Fails if sizeof(double) < 8
- UNUSED(Check1);
- UNUSED(Check2);
+ UNUSED_VAR(Check1);
+ UNUSED_VAR(Check2);
ASSERT(m_Tags[(size_t)a_Tag].m_Type == TAG_Double);
return NetworkToHostDouble8(m_Data + m_Tags[(size_t)a_Tag].m_DataStart);