craftdef.cpp: Return 0 after assert to make Clang happy
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 5 Apr 2015 09:16:12 +0000 (11:16 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 5 Apr 2015 09:16:12 +0000 (11:16 +0200)
src/craftdef.cpp

index 749490f62e55b8e46d14a12d83c1f56fe9c0d42c..9ce5faa95f524a8c8901c0d2b3120446f732dc88 100644 (file)
@@ -531,6 +531,7 @@ u64 CraftDefinitionShaped::getHash(CraftHashType type) const
        } else {
                //illegal hash type for this CraftDefinition (pre-condition)
                assert(false);
+               return 0;
        }
 }
 
@@ -676,6 +677,7 @@ u64 CraftDefinitionShapeless::getHash(CraftHashType type) const
        } else {
                //illegal hash type for this CraftDefinition (pre-condition)
                assert(false);
+               return 0;
        }
 }
 
@@ -902,6 +904,7 @@ u64 CraftDefinitionCooking::getHash(CraftHashType type) const
        } else {
                //illegal hash type for this CraftDefinition (pre-condition)
                assert(false);
+               return 0;
        }
 }
 
@@ -1011,6 +1014,7 @@ u64 CraftDefinitionFuel::getHash(CraftHashType type) const
        } else {
                //illegal hash type for this CraftDefinition (pre-condition)
                assert(false);
+               return 0;
        }
 }