Title: [151406] trunk/Source/WebKit2
- Revision
- 151406
- Author
- [email protected]
- Date
- 2013-06-10 15:10:09 -0700 (Mon, 10 Jun 2013)
Log Message
[WK2][CoordinatedGraphics] Add default case to switches to fix strict build
https://bugs.webkit.org/show_bug.cgi?id=117416
Patch by Sergio Correia <[email protected]> on 2013-06-10
Reviewed by Noam Rosenthal.
This patch fixes a strict build by asserting on the default case of two
switch statements where gcc was previously complaining of unhandled cases.
* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
(CoreIPC::::encode):
(CoreIPC::::decode):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (151405 => 151406)
--- trunk/Source/WebKit2/ChangeLog 2013-06-10 21:50:01 UTC (rev 151405)
+++ trunk/Source/WebKit2/ChangeLog 2013-06-10 22:10:09 UTC (rev 151406)
@@ -1,3 +1,17 @@
+2013-06-10 Sergio Correia <[email protected]>
+
+ [WK2][CoordinatedGraphics] Add default case to switches to fix strict build
+ https://bugs.webkit.org/show_bug.cgi?id=117416
+
+ Reviewed by Noam Rosenthal.
+
+ This patch fixes a strict build by asserting on the default case of two
+ switch statements where gcc was previously complaining of unhandled cases.
+
+ * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
+ (CoreIPC::::encode):
+ (CoreIPC::::decode):
+
2013-06-10 Anders Carlsson <[email protected]>
-[WKView _updateWindowAndViewFrames] should avoid updating the view frame in window coordinates if we don't have plugins
Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp (151405 => 151406)
--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp 2013-06-10 21:50:01 UTC (rev 151405)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp 2013-06-10 22:10:09 UTC (rev 151406)
@@ -184,7 +184,11 @@
ArgumentCoder<TransformOperations>::encode(encoder, transformParameter->operations());
break;
}
+ default: {
+ ASSERT_NOT_REACHED();
+ break;
}
+ }
}
encoder << customOperation->meshRows();
@@ -319,7 +323,11 @@
parameters[i] = transformParameter.release();
break;
}
+ default: {
+ ASSERT_NOT_REACHED();
+ return false;
}
+ }
}
unsigned meshRows;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes