From 804805d35a87c2acc9425d1762ad26b1ba2ec9ac Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Wed, 29 Jul 2015 09:04:03 -0600 Subject: Silenced and fixed many warning messages across multiple files. --- src/Items/ItemSword.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Items/ItemSword.h') diff --git a/src/Items/ItemSword.h b/src/Items/ItemSword.h index 2b2dbfc0d..3b0db7b21 100644 --- a/src/Items/ItemSword.h +++ b/src/Items/ItemSword.h @@ -46,12 +46,15 @@ public: virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override { - switch ((int)a_Action) + switch (a_Action) { case dlaAttackEntity: return 1; case dlaBreakBlock: return 2; } + + #ifndef __clang__ return 0; + #endif } } ; -- cgit v1.2.3