warning: unused parameter ‘renderingMode' in ImageBufferCairo.cpp:94
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Sep 2013 05:04:55 +0000 (05:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Sep 2013 05:04:55 +0000 (05:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=120543

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-08-31
Reviewed by Darin Adler.

Fixing warning by adding ASSERT_UNUSED.

* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::ImageBuffer::ImageBuffer):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp

index 69cd386e9d5a1ae4c32860269a9fc12e77ff89ca..388e6c53e2d45c0d4bbcaa08f317564ea583ebe4 100644 (file)
@@ -1,3 +1,15 @@
+2013-08-31  Santosh Mahto  <santosh.ma@samsung.com>
+
+        warning: unused parameter â€˜renderingMode'  in ImageBufferCairo.cpp:94
+        https://bugs.webkit.org/show_bug.cgi?id=120543
+
+        Reviewed by Darin Adler.
+
+        Fixing warning by adding ASSERT_UNUSED.
+
+        * platform/graphics/cairo/ImageBufferCairo.cpp:
+        (WebCore::ImageBuffer::ImageBuffer):
+
 2013-08-31  Andreas Kling  <akling@apple.com>
 
         Fix typo in r154931 that caused assertions in continuation tests.
index 4cf716613757f16993d4109d468f65ee7bcc1323..8c62e7eda65f3718a55743d0c7de2df93aa42437 100644 (file)
@@ -102,6 +102,8 @@ ImageBuffer::ImageBuffer(const IntSize& size, float /* resolutionScale */, Color
     if (renderingMode == Accelerated)
         m_data.m_surface = createCairoGLSurface(size, m_data.m_texture);
     else
+#else
+    ASSERT_UNUSED(renderingMode, renderingMode != Accelerated);
 #endif
         m_data.m_surface = adoptRef(cairo_image_surface_create(CAIRO_FORMAT_ARGB32, size.width(), size.height()));