diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-09-13 11:08:41 -0700 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2018-09-17 16:50:11 +0000 |
commit | 502f4864d6c92fce4cb0e4f7f2b12d7124da902b (patch) | |
tree | b34cb377a8a6543fb0baf68e566b120209b3aaf9 /logd | |
parent | c2501fda600ea2067099c1de042e3db7acde74ee (diff) | |
download | system_core-502f4864d6c92fce4cb0e4f7f2b12d7124da902b.tar.gz system_core-502f4864d6c92fce4cb0e4f7f2b12d7124da902b.tar.bz2 system_core-502f4864d6c92fce4cb0e4f7f2b12d7124da902b.zip |
Suppress implicit-fallthrough warnings.
Add FALLTHROUGH_INTENDED for clang compiler.
Bug: 112564944
Test: build with global -Wimplicit-fallthrough.
Change-Id: I40f8bbf94e207c9dd90921e9b762ba51abab5777
Diffstat (limited to 'logd')
-rw-r--r-- | logd/LogKlog.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/logd/LogKlog.cpp b/logd/LogKlog.cpp index e4393a3c1..513c0c3f9 100644 --- a/logd/LogKlog.cpp +++ b/logd/LogKlog.cpp @@ -475,9 +475,7 @@ void LogKlog::synchronize(const char* buf, ssize_t len) { static int convertKernelPrioToAndroidPrio(int pri) { switch (pri & LOG_PRIMASK) { case LOG_EMERG: - // FALLTHRU case LOG_ALERT: - // FALLTHRU case LOG_CRIT: return ANDROID_LOG_FATAL; @@ -488,9 +486,7 @@ static int convertKernelPrioToAndroidPrio(int pri) { return ANDROID_LOG_WARN; default: - // FALLTHRU case LOG_NOTICE: - // FALLTHRU case LOG_INFO: break; |