From d1dee3c9092b7c270b297366757c9fc8d03bb0dd Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 2 Aug 2016 13:12:34 +0200 Subject: Fixed RasPi builds of unit tests. On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds. --- src/BlockID.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/BlockID.cpp') diff --git a/src/BlockID.cpp b/src/BlockID.cpp index 357f6a5a4..a558db2f7 100644 --- a/src/BlockID.cpp +++ b/src/BlockID.cpp @@ -392,7 +392,9 @@ AString DamageTypeToString(eDamageType a_DamageType) // Unknown damage type: ASSERT(!"Unknown DamageType"); - return Printf("dtUnknown_%d", static_cast(a_DamageType)); + #ifndef __clang__ + return Printf("dtUnknown_%d", static_cast(a_DamageType)); + #endif } -- cgit v1.2.3