[webkit-changes] cvs commit: JavaScriptCore/kjs array_object.cpp date_object.cpp

Darin darin at opensource.apple.com
Sun Aug 7 21:35:23 PDT 2005


darin       05/08/07 21:35:23

  Modified:    .        ChangeLog
               kjs      array_object.cpp date_object.cpp
  Log:
          - fixed two problems compiling with gcc 4.0
  
          * kjs/array_object.cpp: (ArrayProtoFuncImp::callAsFunction): Initialized a
          variable to quiet an erroneous warning.
          * kjs/date_object.cpp: (KJS::makeTime): Removed extraneous KJS:: prefix.
  
  Revision  Changes    Path
  1.779     +8 -0      JavaScriptCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/ChangeLog,v
  retrieving revision 1.778
  retrieving revision 1.779
  diff -u -r1.778 -r1.779
  --- ChangeLog	8 Aug 2005 04:07:21 -0000	1.778
  +++ ChangeLog	8 Aug 2005 04:35:20 -0000	1.779
  @@ -1,5 +1,13 @@
   2005-08-07  Darin Adler  <darin at apple.com>
   
  +        - fixed two problems compiling with gcc 4.0
  +
  +        * kjs/array_object.cpp: (ArrayProtoFuncImp::callAsFunction): Initialized a
  +        variable to quiet an erroneous warning.
  +        * kjs/date_object.cpp: (KJS::makeTime): Removed extraneous KJS:: prefix.
  +
  +2005-08-07  Darin Adler  <darin at apple.com>
  +
           Rubber stamped by Maciej.
   
           - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4313
  
  
  
  1.50      +1 -1      JavaScriptCore/kjs/array_object.cpp
  
  Index: array_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/array_object.cpp,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- array_object.cpp	8 Aug 2005 04:07:27 -0000	1.49
  +++ array_object.cpp	8 Aug 2005 04:35:22 -0000	1.50
  @@ -426,7 +426,7 @@
   {
     unsigned length = thisObj->get(exec,lengthPropertyName)->toUInt32(exec);
   
  -  ValueImp *result;
  +  ValueImp *result = 0; // work around gcc 4.0 bug in uninitialized variable warning
     
     switch (id) {
     case ToLocaleString:
  
  
  
  1.50      +1 -1      JavaScriptCore/kjs/date_object.cpp
  
  Index: date_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/date_object.cpp,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- date_object.cpp	8 Aug 2005 04:07:27 -0000	1.49
  +++ date_object.cpp	8 Aug 2005 04:35:22 -0000	1.50
  @@ -955,7 +955,7 @@
       { "PDT", -420 }
   };
   
  -double KJS::makeTime(struct tm *t, double ms, bool utc)
  +double makeTime(struct tm *t, double ms, bool utc)
   {
       int utcOffset;
       if (utc) {
  
  
  



More information about the webkit-changes mailing list