summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-08-04 21:04:03 +0200
committerGitHub <noreply@github.com>2016-08-04 21:04:03 +0200
commitad9fc1767321fc0bd11aaa85f4e5d81177cca7cc (patch)
treeccbb0e62481ce4944107294200c948f835494fe0 /src/Entities
parentMerge pull request #3293 from LogicParrot/blockArea (diff)
parentFixed RasPi builds of unit tests. (diff)
downloadcuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.gz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.bz2
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.lz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.xz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.zst
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ArrowEntity.cpp4
-rw-r--r--src/Entities/Entity.cpp4
-rw-r--r--src/Entities/EntityEffect.cpp4
-rw-r--r--src/Entities/ProjectileEntity.cpp4
4 files changed, 12 insertions, 4 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp
index 380af101c..59d742f8d 100644
--- a/src/Entities/ArrowEntity.cpp
+++ b/src/Entities/ArrowEntity.cpp
@@ -67,7 +67,9 @@ bool cArrowEntity::CanPickup(const cPlayer & a_Player) const
case psInCreative: return a_Player.IsGameModeCreative();
}
ASSERT(!"Unhandled pickup state");
- return false;
+ #ifndef __clang__
+ return false;
+ #endif
}
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 98be99a27..2adbc3142 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -741,7 +741,9 @@ bool cEntity::ArmorCoversAgainst(eDamageType a_DamageType)
}
}
ASSERT(!"Invalid damage type!");
- return false;
+ #ifndef __clang__
+ return false;
+ #endif
}
diff --git a/src/Entities/EntityEffect.cpp b/src/Entities/EntityEffect.cpp
index 9b80e6238..620be395b 100644
--- a/src/Entities/EntityEffect.cpp
+++ b/src/Entities/EntityEffect.cpp
@@ -217,7 +217,9 @@ cEntityEffect * cEntityEffect::CreateEntityEffect(cEntityEffect::eType a_EffectT
}
ASSERT(!"Unhandled entity effect type!");
- return nullptr;
+ #ifndef __clang__
+ return nullptr;
+ #endif
}
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 72dccbfb4..c4f705668 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -357,7 +357,9 @@ AString cProjectileEntity::GetMCAClassName(void) const
case pkFishingFloat: return ""; // Unknown, perhaps MC doesn't save this?
}
ASSERT(!"Unhandled projectile entity kind!");
- return "";
+ #ifndef __clang__
+ return "";
+ #endif
}