Skip to content

Commit ed3ebd6

Browse files
committedApr 5, 2015
craftdef.cpp: Return 0 after assert to make Clang happy
1 parent 4235f67 commit ed3ebd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/craftdef.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ u64 CraftDefinitionShaped::getHash(CraftHashType type) const
531531
} else {
532532
//illegal hash type for this CraftDefinition (pre-condition)
533533
assert(false);
534+
return 0;
534535
}
535536
}
536537

@@ -676,6 +677,7 @@ u64 CraftDefinitionShapeless::getHash(CraftHashType type) const
676677
} else {
677678
//illegal hash type for this CraftDefinition (pre-condition)
678679
assert(false);
680+
return 0;
679681
}
680682
}
681683

@@ -902,6 +904,7 @@ u64 CraftDefinitionCooking::getHash(CraftHashType type) const
902904
} else {
903905
//illegal hash type for this CraftDefinition (pre-condition)
904906
assert(false);
907+
return 0;
905908
}
906909
}
907910

@@ -1011,6 +1014,7 @@ u64 CraftDefinitionFuel::getHash(CraftHashType type) const
10111014
} else {
10121015
//illegal hash type for this CraftDefinition (pre-condition)
10131016
assert(false);
1017+
return 0;
10141018
}
10151019
}
10161020

0 commit comments

Comments
 (0)