diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-04-05 11:16:12 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-04-05 11:16:12 +0200 |
commit | ed3ebd633d23184c65128fae72f2b6c10c932e73 (patch) | |
tree | 92a4f73cd2668a846cc1211c4ea4fe8226d86685 | |
parent | 4235f671c1db54972d288d5be952a748a7563080 (diff) | |
download | minetest-ed3ebd633d23184c65128fae72f2b6c10c932e73.tar.gz minetest-ed3ebd633d23184c65128fae72f2b6c10c932e73.tar.bz2 minetest-ed3ebd633d23184c65128fae72f2b6c10c932e73.zip |
craftdef.cpp: Return 0 after assert to make Clang happy
-rw-r--r-- | src/craftdef.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/craftdef.cpp b/src/craftdef.cpp index 749490f62..9ce5faa95 100644 --- a/src/craftdef.cpp +++ b/src/craftdef.cpp @@ -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; } } |