Changeset 27947 in webkit for trunk/JavaScriptCore/kjs/dtoa.cpp


Ignore:
Timestamp:
Nov 21, 2007, 7:08:41 PM (18 years ago)
Author:
[email protected]
Message:

Fix <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings.

Reviewed by Tim Hatcher.

Fix all warnings emitted by GCC 4.2 when building JavaScriptCore. This allows builds with
-Werror to succeed. At present they will crash when executed due to code that is not safe
under strict aliasing (<rdar://problem/5536806>).

This required some format strings to be modified in WebCore and WebKit as their format
specifiers did not match the argument type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/dtoa.cpp

    r23955 r27947  
    29752975                                                goto bump_up;
    29762976                                        else if (dval(d) < 0.5 - dval(eps)) {
    2977                                                 while(*--s == '0');
     2977                                                while (*--s == '0') { }
    29782978                                                s++;
    29792979                                                goto ret1;
     
    32943294trimzeros:
    32953295#endif
    3296                 while(*--s == '0');
     3296                while (*--s == '0') { }
    32973297                s++;
    32983298                }
Note: See TracChangeset for help on using the changeset viewer.