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/date_object.cpp

    r27610 r27947  
    230230        strftime(tzname, sizeof(tzname), "%Z", &gtm);
    231231
    232         if (tzname) {
     232        if (tzname[0]) {
    233233            snprintf(buffer, sizeof(buffer), "%02d:%02d:%02d GMT%c%02d%02d (%s)",
    234234                t.hour, t.minute, t.second,
Note: See TracChangeset for help on using the changeset viewer.