Commit 99e67e0e authored by oleg@chromium.org's avatar oleg@chromium.org

Prevent "control reaches end of non-void function" warning from gcc on Mac.

Review URL: http://codereview.chromium.org/660379

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4001 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 96ff21c7
......@@ -4971,9 +4971,9 @@ static Object* Runtime_DateMakeDay(Arguments args) {
if (year % 4 || (year % 100 == 0 && year % 400 != 0)) {
return Smi::FromInt(day_from_year + day_from_month[month] + date - 1);
} else {
return Smi::FromInt(day_from_year + day_from_month_leap[month] + date - 1);
}
return Smi::FromInt(day_from_year + day_from_month_leap[month] + date - 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment