Fix implicit fallthrough warnings.

Test: make checkbuild
Bug: 112564944
Change-Id: I0810479d070cf797623d2da449587d77e36f9754
gugelfrei
Chih-Hung Hsieh 6 years ago
parent a499844d1c
commit 6fd8b606ed

@ -20,6 +20,8 @@ LOCAL_C_INCLUDES := \
LOCAL_SRC_FILES := \
resampler_tests.cpp
LOCAL_HEADER_LIBRARIES := libbase_headers
LOCAL_MODULE := resampler_tests
LOCAL_MODULE_TAGS := tests
@ -49,6 +51,8 @@ LOCAL_SHARED_LIBRARIES := \
liblog \
libutils \
LOCAL_HEADER_LIBRARIES := libbase_headers
LOCAL_MODULE := test-mixer
LOCAL_MODULE_TAGS := optional

@ -23,6 +23,7 @@
#include <log/log.h>
#include <android-base/macros.h>
#include <audio_utils/sndfile.h>
#ifndef ARRAY_SIZE
@ -77,14 +78,14 @@ static inline int parseCSV(const char *string, std::vector<int>& values)
}
return numValues;
}
// fall through
FALLTHROUGH_INTENDED;
case ',':
if (hadDigit) {
hadDigit = false;
numValues++;
break;
}
// fall through
FALLTHROUGH_INTENDED;
default:
return -1;
}

Loading…
Cancel
Save