Skip to content

Commit 7143601

Browse files
authored
Fix build warning: control reaches end of non-void function [-Wreturn-type] (#11)
1 parent 7e4430a commit 7143601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/php/classes/locale.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static UCalendarDaysOfWeek weekDayEcmaToIcu(ecma402_dayOfWeek day) {
519519
return UCAL_FRIDAY;
520520
case ECMA402_SATURDAY:
521521
return UCAL_SATURDAY;
522-
case ECMA402_SUNDAY:
522+
default:
523523
return UCAL_SUNDAY;
524524
}
525525
}
@@ -538,7 +538,7 @@ static ecma402_dayOfWeek weekDayIcuToEcma(UCalendarDaysOfWeek day) {
538538
return ECMA402_FRIDAY;
539539
case UCAL_SATURDAY:
540540
return ECMA402_SATURDAY;
541-
case UCAL_SUNDAY:
541+
default:
542542
return ECMA402_SUNDAY;
543543
}
544544
}

0 commit comments

Comments
 (0)