mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
craftdef.cpp: Return 0 after assert to make Clang happy
This commit is contained in:
parent
4235f671c1
commit
ed3ebd633d
@ -531,6 +531,7 @@ u64 CraftDefinitionShaped::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -676,6 +677,7 @@ u64 CraftDefinitionShapeless::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -902,6 +904,7 @@ u64 CraftDefinitionCooking::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1011,6 +1014,7 @@ u64 CraftDefinitionFuel::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user