summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-13 13:46:20 -0700
committerChih-hung Hsieh <chh@google.com>2018-10-01 20:33:12 +0000
commit7994454b6f3fb6b19905062af9ed8ddfbebbe65b (patch)
treed05a5d8ba8aa8bcf1d64bac65c40d2440633ddfc /cmds
parent3d514b76343437a6277a777e20ff13a15b0c8f1b (diff)
downloadframeworks_av-7994454b6f3fb6b19905062af9ed8ddfbebbe65b.tar.gz
frameworks_av-7994454b6f3fb6b19905062af9ed8ddfbebbe65b.tar.bz2
frameworks_av-7994454b6f3fb6b19905062af9ed8ddfbebbe65b.zip
Suppress implicit-fallthrough warnings in stagefright.
Add FALLTHROUGH_INTENDED for clang compiler. Bug: 112564944 Test: build with global -Wimplicit-fallthrough. Change-Id: Ifba4afb0d332fc7d8f57486d09b7b8e6b763293c
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/codec.cpp4
-rw-r--r--cmds/stagefright/mediafilter.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/cmds/stagefright/codec.cpp b/cmds/stagefright/codec.cpp
index 6a58467d78..980d1d2c0b 100644
--- a/cmds/stagefright/codec.cpp
+++ b/cmds/stagefright/codec.cpp
@@ -366,13 +366,13 @@ int main(int argc, char **argv) {
case 'T':
{
useTimestamp = true;
+ FALLTHROUGH_INTENDED;
}
- // fall through
case 'R':
{
renderSurface = true;
+ FALLTHROUGH_INTENDED;
}
- // fall through
case 'S':
{
useSurface = true;
diff --git a/cmds/stagefright/mediafilter.cpp b/cmds/stagefright/mediafilter.cpp
index f24d2ddd95..630de25999 100644
--- a/cmds/stagefright/mediafilter.cpp
+++ b/cmds/stagefright/mediafilter.cpp
@@ -706,13 +706,13 @@ int main(int argc, char **argv) {
case 'T':
{
useTimestamp = true;
+ FALLTHROUGH_INTENDED;
}
- // fall through
case 'R':
{
renderSurface = true;
+ FALLTHROUGH_INTENDED;
}
- // fall through
case 'S':
{
useSurface = true;