From 99e67e0e770336f9cf97bd7cbcaf6e58459a49fc Mon Sep 17 00:00:00 2001 From: "oleg@chromium.org" Date: Tue, 2 Mar 2010 14:44:01 +0000 Subject: [PATCH] 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 --- src/runtime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index d39be92..63f07f7 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -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); } -- 2.7.4