Clean up AVOID_UB ifdefs

This commit is contained in:
Arceveti committed 2021-09-22 11:35:17 -07:00
1 parent f40a1978d9
commit 5afa901fcf
35 files changed
+26 -275

No files matched your search

+1 -10
View File
@@ -1125,12 +1125,7 @@ void unref_8017AEDC(struct ObjGroup *grp) {
* @bug Nothing is returned if the DL is created
* @note Contains string literals that suggest a removed `printf` call
*/
#ifdef AVOID_UB
void
#else
s32
#endif
create_shape_gddl(struct ObjShape *s) {
void create_shape_gddl(struct ObjShape *s) {
struct ObjShape *shape = s; // 24
s32 shapedl; // 20
UNUSED s32 enddl; // 1C
@@ -1138,11 +1133,7 @@ create_shape_gddl(struct ObjShape *s) {
create_shape_mtl_gddls(shape);
shapedl = gd_startdisplist(7);
if (shapedl == 0) {
#ifdef AVOID_UB
return;
#else
return -1;
#endif
}
setup_lights();