summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2017-03-13 16:31:36 +0000
committerDaniel Stone <daniels@collabora.com>2017-03-13 17:56:07 +0000
commit2ef9b1a3c4a303601ee475af13b4c13b3f6f286c (patch)
treea00bbb51b7f4bba3562a0891dcd268a13f00cfcd /tests
parent05df8c16ec8a9ac124691f85d7d89e0a973fea64 (diff)
Fix 'implicit fallthrough' warning with new GCC
GCC 7 now warns on case statements falling through without an explicit comment that falling through is OK. Insert some to make it happy. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/subsurface-test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/subsurface-test.c b/tests/subsurface-test.c
index edb08422..1a24ee35 100644
--- a/tests/subsurface-test.c
+++ b/tests/subsurface-test.c
@@ -579,22 +579,31 @@ create_subsurface_tree(struct client *client, struct wl_surface **surfs,
case 11:
SUB_LINK(10, 2);
+ /* fallthrough */
case 10:
SUB_LINK(9, 2);
+ /* fallthrough */
case 9:
SUB_LINK(8, 6);
+ /* fallthrough */
case 8:
SUB_LINK(7, 6);
+ /* fallthrough */
case 7:
SUB_LINK(6, 2);
+ /* fallthrough */
case 6:
SUB_LINK(5, 1);
+ /* fallthrough */
case 5:
SUB_LINK(4, 3);
+ /* fallthrough */
case 4:
SUB_LINK(3, 1);
+ /* fallthrough */
case 3:
SUB_LINK(2, 0);
+ /* fallthrough */
case 2:
SUB_LINK(1, 0);