Changeset 285150 in webkit


Ignore:
Timestamp:
Nov 1, 2021, 7:30:27 PM (4 years ago)
Author:
Fujii Hironori
Message:

ImageDiff.cpp(74): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 2 has type 'size_t'
https://bugs.webkit.org/show_bug.cgi?id=232596

Reviewed by Don Olmstead.

Since r284764, MSVC reports the following warning and a suggestion.

Tools\ImageDiff\ImageDiff.cpp(74): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 2 has type 'size_t'
Tools\ImageDiff\ImageDiff.cpp(74): note: consider using '%zu' in the format string

  • ImageDiff/ImageDiff.cpp:

(processImages): Use %zu for size_t.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r285142 r285150  
     12021-11-01  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        ImageDiff.cpp(74): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 2 has type 'size_t'
     4        https://bugs.webkit.org/show_bug.cgi?id=232596
     5
     6        Reviewed by Don Olmstead.
     7
     8        Since r284764, MSVC reports the following warning and a suggestion.
     9
     10        > Tools\ImageDiff\ImageDiff.cpp(74): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 2 has type 'size_t'
     11        > Tools\ImageDiff\ImageDiff.cpp(74): note: consider using '%zu' in the format string
     12
     13        * ImageDiff/ImageDiff.cpp:
     14        (processImages): Use %zu for size_t.
     15
    1162021-11-01  Jonathan Bedard  <jbedard@apple.com>
    217
  • trunk/Tools/ImageDiff/ImageDiff.cpp

    r285109 r285150  
    7272
    7373    if (printDifference)
    74         fprintf(stdout, "maxDifference=%u; totalPixels=%lu\n", differenceData.maxDifference, differenceData.totalPixels);
     74        fprintf(stdout, "maxDifference=%u; totalPixels=%zu\n", differenceData.maxDifference, differenceData.totalPixels);
    7575
    7676    fprintf(stdout, "#EOF\n");
Note: See TracChangeset for help on using the changeset viewer.