From f08d6fae3ad8db1197bbf8565feda4d9d11d4eca Mon Sep 17 00:00:00 2001 From: Rahul Frias Date: Fri, 19 Jun 2015 11:14:21 -0700 Subject: [PATCH] Address compiler warning [ Merge of http://go/wvgerrit/14788 ] A retired error code was not being handled when converting from a WVStatus error code to a ERROR_DRM_VENDOR error code. b/13976775 Change-Id: Ib4363792e4a5e9a20fc718d169b3e0348413267a --- libwvdrmengine/include/mapErrors-inl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libwvdrmengine/include/mapErrors-inl.h b/libwvdrmengine/include/mapErrors-inl.h index ee3b3a5f..0e223c33 100644 --- a/libwvdrmengine/include/mapErrors-inl.h +++ b/libwvdrmengine/include/mapErrors-inl.h @@ -343,6 +343,8 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) { return kEmptyLicenseRequest; case wvcdm::UNKNOWN_ERROR: return android::ERROR_DRM_UNKNOWN; + case wvcdm::UNUSED_1: + return android::UNKNOWN_ERROR; } // Return here instead of as a default case so that the compiler will warn