summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-13 14:16:02 -0700
committerChih-Hung Hsieh <chh@google.com>2018-09-17 12:50:12 -0700
commit2b48703770efab81143d389d7389166eb1a6c8db (patch)
treef309a4bbfbb4f716dee1af20f82ca95aa04b907e /services/audioflinger/Tracks.cpp
parentf8d13dee65d3708ea527e9f565be85031d7021ba (diff)
downloadframeworks_av-2b48703770efab81143d389d7389166eb1a6c8db.tar.gz
frameworks_av-2b48703770efab81143d389d7389166eb1a6c8db.tar.bz2
frameworks_av-2b48703770efab81143d389d7389166eb1a6c8db.zip
Suppress implicit-fallthrough warnings in audioflinger etc.
Add FALLTHROUGH_INTENDED for clang compiler. Bug: 112564944 Test: build with global -Wimplicit-fallthrough. Change-Id: I8875bc7ed073aae84d5df97eb39c8c745ca627ef
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index a7c4253569..6d25fb9a5e 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -842,7 +842,7 @@ void AudioFlinger::PlaybackThread::Track::pause()
// Offloaded track was draining, we need to carry on draining when resumed
mResumeToStopping = true;
- // fall through...
+ FALLTHROUGH_INTENDED;
case ACTIVE:
case RESUMING:
mState = PAUSING;