Added unreachable lines backit prtected by preprocessor guards
This commit is contained in:
parent
04adca3410
commit
363c92ed53
@ -290,6 +290,10 @@ inline AString BlockFaceToString(eBlockFace a_BlockFace)
|
|||||||
case BLOCK_FACE_ZP: return "BLOCK_FACE_ZP";
|
case BLOCK_FACE_ZP: return "BLOCK_FACE_ZP";
|
||||||
case BLOCK_FACE_NONE: return "BLOCK_FACE_NONE";
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +30,13 @@ AString cObjective::TypeToString(eType a_Type)
|
|||||||
case otStatBlockMine: return "stat.mineBlock";
|
case otStatBlockMine: return "stat.mineBlock";
|
||||||
case otStatEntityKill: return "stat.killEntity";
|
case otStatEntityKill: return "stat.killEntity";
|
||||||
case otStatEntityKilledBy: return "stat.entityKilledBy";
|
case otStatEntityKilledBy: return "stat.entityKilledBy";
|
||||||
|
|
||||||
|
// clang optimisises this line away then warns that it has done so.
|
||||||
|
#if !defined(__clang__)
|
||||||
|
default: return "";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user