From d282cb97c84b804d72c35612bd905c19200f6205 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Mon, 29 Oct 2018 14:53:56 -0700 Subject: Fix implicit-fallthrough warnings in AVDVirglRenderer.cpp etc. It will be a global error by default. Test: make checkbuild Bug: 112564944 Exempt-From-Owner-Approval: do not block on new warnings --- host/commands/emugen/main.cpp | 2 +- host/libs/virglrenderer/AVDVirglRenderer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/host/commands/emugen/main.cpp b/host/commands/emugen/main.cpp index 5408617a1..6200349f7 100644 --- a/host/commands/emugen/main.cpp +++ b/host/commands/emugen/main.cpp @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) break; case ':': fprintf(stderr, "Missing argument !!\n"); - // fall through + [[fallthrough]]; default: usage(argv[0]); exit(0); diff --git a/host/libs/virglrenderer/AVDVirglRenderer.cpp b/host/libs/virglrenderer/AVDVirglRenderer.cpp index 2be15d5a1..95e725600 100644 --- a/host/libs/virglrenderer/AVDVirglRenderer.cpp +++ b/host/libs/virglrenderer/AVDVirglRenderer.cpp @@ -788,7 +788,7 @@ int virgl_renderer_create_fence(int client_fence_id, uint32_t cmd_type) { g_last_submit_cmd_ctx->setFence(client_fence_id); break; } - // Fall through + [[fallthrough]]; default: { std::lock_guard lk(g_fence_deque_mutex); g_fence_deque.push_back(client_fence_id); -- cgit v1.2.3