summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-10-29 18:38:22 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-10-29 18:38:22 -0700
commit53726cf136bd1a63408bc9c59880f67f32d59dba (patch)
tree2aa6db93e9fe64e4b44d791bc4c8038b968c9876
parentc0cd03e863533355420356bc0b6432541640e2a2 (diff)
parenta6b9bb3007d80aa172578432690d1c238c69b968 (diff)
downloaddevice_generic_opengl-transport-53726cf136bd1a63408bc9c59880f67f32d59dba.tar.gz
device_generic_opengl-transport-53726cf136bd1a63408bc9c59880f67f32d59dba.tar.bz2
device_generic_opengl-transport-53726cf136bd1a63408bc9c59880f67f32d59dba.zip
Fix implicit-fallthrough warnings in AVDVirglRenderer.cpp etc. am: d282cb97c8 am: b6da014c67
am: a6b9bb3007 Change-Id: Iec0097eda096e0b216911d4dcaf458afe8542c3f
-rw-r--r--host/commands/emugen/main.cpp2
-rw-r--r--host/libs/virglrenderer/AVDVirglRenderer.cpp2
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<std::mutex> lk(g_fence_deque_mutex);
g_fence_deque.push_back(client_fence_id);