Suppress implicit-fallthrough warnings.

[ Merge of http://go/wvgerrit/63782 ]

Add FALLTHROUGH_INTENDED for clang compiler.

Bug: 117675755
Test: build with global -Wimplicit-fallthrough.
Change-Id: I603042152ae8fb7e6518ca24e404df1d63097337
This commit is contained in:
Rahul Frias
2018-10-15 19:04:26 -07:00
parent de66ef118d
commit e2a1682b99

View File

@@ -14,6 +14,7 @@
#include "WVDrmPlugin.h" #include "WVDrmPlugin.h"
#include "TypeConvert.h" #include "TypeConvert.h"
#include "android-base/macros.h"
#include "hidl_metrics_adapter.h" #include "hidl_metrics_adapter.h"
#include "mapErrors-inl.h" #include "mapErrors-inl.h"
#include "media/stagefright/MediaErrors.h" #include "media/stagefright/MediaErrors.h"
@@ -1653,10 +1654,11 @@ Status WVDrmPlugin::mapOEMCryptoResult(OEMCryptoResult res) {
case OEMCrypto_ERROR_INVALID_RSA_KEY: case OEMCrypto_ERROR_INVALID_RSA_KEY:
case OEMCrypto_ERROR_SHORT_BUFFER: case OEMCrypto_ERROR_SHORT_BUFFER:
ALOGW("Returns UNKNOWN error for legacy status: %d", res);
case OEMCrypto_ERROR_UNKNOWN_FAILURE: case OEMCrypto_ERROR_UNKNOWN_FAILURE:
case OEMCrypto_ERROR_OPEN_SESSION_FAILED: case OEMCrypto_ERROR_OPEN_SESSION_FAILED:
FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default: default:
ALOGW("Returns UNKNOWN error for legacy status: %d", res);
return Status::ERROR_DRM_UNKNOWN; return Status::ERROR_DRM_UNKNOWN;
} }
} }