Loading media/jni/Android.bp +0 −3 Original line number Diff line number Diff line Loading @@ -81,9 +81,6 @@ cc_library_shared { "-Wno-error=deprecated-declarations", "-Wunused", "-Wunreachable-code", // Allow implicit fallthroughs in android_media_MediaScanner.cpp and // android_mtp_MtpDatabase.cpp until they are fixed. "-Wno-error=implicit-fallthrough", ], } Loading media/jni/android_media_MediaScanner.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <nativehelper/JNIHelp.h> #include "android_runtime/AndroidRuntime.h" #include "android_runtime/Log.h" #include <android-base/macros.h> // for FALLTHROUGH_INTENDED using namespace android; Loading Loading @@ -92,6 +93,7 @@ static bool isValidUtf8(const char* bytes) { return false; } // Fall through to take care of the final byte. FALLTHROUGH_INTENDED; case 0x0c: case 0x0d: // Bit pattern 110x, so there is one additional byte. Loading media/jni/android_mtp_MtpDatabase.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -1272,6 +1272,7 @@ MtpProperty* MtpDatabase::getDevicePropertyDesc(MtpDeviceProperty property) { case MTP_DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME: writable = true; // fall through FALLTHROUGH_INTENDED; case MTP_DEVICE_PROPERTY_IMAGE_SIZE: { result = new MtpProperty(property, MTP_TYPE_STR, writable); Loading Loading
media/jni/Android.bp +0 −3 Original line number Diff line number Diff line Loading @@ -81,9 +81,6 @@ cc_library_shared { "-Wno-error=deprecated-declarations", "-Wunused", "-Wunreachable-code", // Allow implicit fallthroughs in android_media_MediaScanner.cpp and // android_mtp_MtpDatabase.cpp until they are fixed. "-Wno-error=implicit-fallthrough", ], } Loading
media/jni/android_media_MediaScanner.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <nativehelper/JNIHelp.h> #include "android_runtime/AndroidRuntime.h" #include "android_runtime/Log.h" #include <android-base/macros.h> // for FALLTHROUGH_INTENDED using namespace android; Loading Loading @@ -92,6 +93,7 @@ static bool isValidUtf8(const char* bytes) { return false; } // Fall through to take care of the final byte. FALLTHROUGH_INTENDED; case 0x0c: case 0x0d: // Bit pattern 110x, so there is one additional byte. Loading
media/jni/android_mtp_MtpDatabase.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -1272,6 +1272,7 @@ MtpProperty* MtpDatabase::getDevicePropertyDesc(MtpDeviceProperty property) { case MTP_DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME: writable = true; // fall through FALLTHROUGH_INTENDED; case MTP_DEVICE_PROPERTY_IMAGE_SIZE: { result = new MtpProperty(property, MTP_TYPE_STR, writable); Loading