Changeset 10086 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Aug 7, 2005, 9:35:22 PM (20 years ago)
Author:
darin
Message:
  • 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.
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r10084 r10086  
     12005-08-07  Darin Adler  <[email protected]>
     2
     3        - fixed two problems compiling with gcc 4.0
     4
     5        * kjs/array_object.cpp: (ArrayProtoFuncImp::callAsFunction): Initialized a
     6        variable to quiet an erroneous warning.
     7        * kjs/date_object.cpp: (KJS::makeTime): Removed extraneous KJS:: prefix.
     8
    192005-08-07  Darin Adler  <[email protected]>
    210
  • trunk/JavaScriptCore/kjs/array_object.cpp

    r10084 r10086  
    427427  unsigned length = thisObj->get(exec,lengthPropertyName)->toUInt32(exec);
    428428
    429   ValueImp *result;
     429  ValueImp *result = 0; // work around gcc 4.0 bug in uninitialized variable warning
    430430 
    431431  switch (id) {
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r10084 r10086  
    956956};
    957957
    958 double KJS::makeTime(struct tm *t, double ms, bool utc)
     958double makeTime(struct tm *t, double ms, bool utc)
    959959{
    960960    int utcOffset;
Note: See TracChangeset for help on using the changeset viewer.