Changeset 65264 in webkit


Ignore:
Timestamp:
Aug 12, 2010 1:28:18 PM (14 years ago)
Author:
Csaba Osztrogonác
Message:

2010-08-12 Csaba Osztrogonác <Csaba Osztrogonác>

Reviewed by Antonio Gomes.

[Qt] Fix warnings: unknown conversion type character 'l' in format
https://bugs.webkit.org/show_bug.cgi?id=43359

Qt port doesn't call any printf in String::format(...), consequently
using attribute((format(printf,m,n))) is incorrect and causes
false positive warnings on Windows if you build with MinGW.

Qt port calls QString::vsprintf(...) , which is platform
independent, and handles %lli, %llu and %llx on all platforms.
(http://trac.webkit.org/changeset/35712)

  • wtf/text/WTFString.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r65260 r65264  
     12010-08-12  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Fix warnings: unknown conversion type character 'l' in format
     6        https://bugs.webkit.org/show_bug.cgi?id=43359
     7
     8        Qt port doesn't call any printf in String::format(...), consequently
     9        using __attribute__((format(printf,m,n))) is incorrect and causes
     10        false positive warnings on Windows if you build with MinGW.
     11
     12        Qt port calls QString::vsprintf(...) , which is platform
     13        independent, and handles %lli, %llu and %llx on all platforms.
     14        (http://trac.webkit.org/changeset/35712)
     15
     16        * wtf/text/WTFString.h:
     17
    1182010-08-12  Gabor Loki  <loki@webkit.org>
    219
  • trunk/JavaScriptCore/wtf/text/WTFString.h

    r65032 r65264  
    202202    static String number(unsigned long long);
    203203    static String number(double);
    204    
     204
     205#if !PLATFORM(QT)
    205206    static String format(const char *, ...) WTF_ATTRIBUTE_PRINTF(1, 2);
     207#else
     208    static String format(const char *, ...);
     209#endif
    206210
    207211    // Returns an uninitialized string. The characters needs to be written
Note: See TracChangeset for help on using the changeset viewer.