2011-05-31 Stephen White <senorblanco@chromium.org>
authorsenorblanco@chromium.org <senorblanco@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 May 2011 21:02:28 +0000 (21:02 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 May 2011 21:02:28 +0000 (21:02 +0000)
        Unreviewed; build fix.

        Silence some warnings on the Safari/Mac release build.

        * platform/graphics/gpu/TilingData.h:
        (WebCore::TilingData::assertTile):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gpu/TilingData.h

index ec41cf7..6920eda 100644 (file)
@@ -1,3 +1,12 @@
+2011-05-31  Stephen White  <senorblanco@chromium.org>
+
+        Unreviewed; build fix.
+
+        Silence some warnings on the Safari/Mac release build.
+
+        * platform/graphics/gpu/TilingData.h:
+        (WebCore::TilingData::assertTile):
+
 2011-05-31  Justin Novosad  <junov@chromium.org>
 
         Reviewed by Stephen White.
index 2989eae..3dabb5d 100644 (file)
@@ -78,7 +78,11 @@ public:
 
 private:
     TilingData() : m_maxTextureSize(0), m_totalSizeX(0), m_totalSizeY(0) {}
+#ifndef NDEBUG
     void assertTile(int tile) const { ASSERT(tile >= 0 && tile < numTiles()); }
+#else
+    void assertTile(int) const {}
+#endif
     void recomputeNumTiles();
 
     int m_maxTextureSize;