Should not reach end of non-void function

This commit is contained in:
Nobuyoshi Nakada 2023-03-22 18:42:53 +09:00
parent 8c00b130a4
commit 6cc8eb4daa
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

8
file.c
View File

@ -5879,10 +5879,8 @@ rb_stat_wr(VALUE obj)
if ((st->st_mode & (S_IROTH)) == S_IROTH) { if ((st->st_mode & (S_IROTH)) == S_IROTH) {
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO)); return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));
} }
else {
return Qnil;
}
#endif #endif
return Qnil;
} }
/* /*
@ -5972,10 +5970,8 @@ rb_stat_ww(VALUE obj)
if ((st->st_mode & (S_IWOTH)) == S_IWOTH) { if ((st->st_mode & (S_IWOTH)) == S_IWOTH) {
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO)); return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));
} }
else {
return Qnil;
}
#endif #endif
return Qnil;
} }
/* /*