[Win][Clang][ImageDiff] Fix compilation error and warning of PlatformImageCairo.cpp
authorHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2018 02:03:12 +0000 (02:03 +0000)
committerHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2018 02:03:12 +0000 (02:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=189496
<rdar://problem/44370981>

Unreviewed warning fix.

r235929 has introduced a new compilation warning:
> Tools/ImageDiff/cairo/PlatformImageCairo.cpp:34:70: warning: unused parameter ‘imageSize’ [-Wunused-parameter]

* ImageDiff/cairo/PlatformImageCairo.cpp:
(ImageDiff::PlatformImage::createFromStdin): Removed the variable name.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235965 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/ImageDiff/cairo/PlatformImageCairo.cpp

index f8e96e8..deb8454 100644 (file)
@@ -1,3 +1,17 @@
+2018-09-12  Fujii Hironori  <Hironori.Fujii@sony.com>
+
+        [Win][Clang][ImageDiff] Fix compilation error and warning of PlatformImageCairo.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=189496
+        <rdar://problem/44370981>
+
+        Unreviewed warning fix.
+
+        r235929 has introduced a new compilation warning:
+        > Tools/ImageDiff/cairo/PlatformImageCairo.cpp:34:70: warning: unused parameter ‘imageSize’ [-Wunused-parameter]
+
+        * ImageDiff/cairo/PlatformImageCairo.cpp:
+        (ImageDiff::PlatformImage::createFromStdin): Removed the variable name.
+
 2018-09-12  Dan Bernstein  <mitz@apple.com>
 
         [Cocoa] Complete support for Paste as Quotation
index 9ad0fd1..4b48ccf 100644 (file)
@@ -31,7 +31,7 @@
 
 namespace ImageDiff {
 
-std::unique_ptr<PlatformImage> PlatformImage::createFromStdin(size_t imageSize)
+std::unique_ptr<PlatformImage> PlatformImage::createFromStdin(size_t)
 {
     cairo_surface_t* surface = cairo_image_surface_create_from_png_stream(
         [](void*, unsigned char* data, unsigned length) -> cairo_status_t {