Reviewers: Vitaly, Mads Ager,

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


Please review this at http://codereview.chromium.org/660379

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/runtime.cc


Index: src/runtime.cc
===================================================================
--- src/runtime.cc      (revision 3999)
+++ src/runtime.cc      (working copy)
@@ -4971,9 +4971,9 @@

   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);
 }




--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to