diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-09-17 17:36:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-09-17 17:36:09 +0000 |
commit | 16fef65f9ed6e2f895a299ed347be27a0df58c56 (patch) | |
tree | b34cb377a8a6543fb0baf68e566b120209b3aaf9 /libutils/RefBase.cpp | |
parent | c2501fda600ea2067099c1de042e3db7acde74ee (diff) | |
parent | 502f4864d6c92fce4cb0e4f7f2b12d7124da902b (diff) |
Merge "Suppress implicit-fallthrough warnings."
Diffstat (limited to 'libutils/RefBase.cpp')
-rw-r--r-- | libutils/RefBase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libutils/RefBase.cpp b/libutils/RefBase.cpp index 3f1e79a04..ae107893c 100644 --- a/libutils/RefBase.cpp +++ b/libutils/RefBase.cpp @@ -19,6 +19,8 @@ #include <memory> +#include <android-base/macros.h> + #include <utils/RefBase.h> #include <utils/CallStack.h> @@ -479,7 +481,7 @@ void RefBase::forceIncStrong(const void* id) const case INITIAL_STRONG_VALUE: refs->mStrong.fetch_sub(INITIAL_STRONG_VALUE, std::memory_order_relaxed); - // fall through... + FALLTHROUGH_INTENDED; case 0: refs->mBase->onFirstRef(); } |