diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-09-17 12:10:36 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-09-17 12:10:36 -0700 |
commit | eaa4a4ec9f3138659222f6e441f7eb8fd4e4105b (patch) | |
tree | 0453ed1b6a969b3e3328c419baa1bb005ddd4c65 /libutils/RefBase.cpp | |
parent | 3c2a5166c6ea4b6db5048980536282adc2c97efd (diff) | |
parent | 229d380b1403fc30c9097abf84cb9b57c3f0bb12 (diff) |
Merge "Suppress implicit-fallthrough warnings." am: 16fef65f9e am: 3784224654
am: 229d380b14
Change-Id: I5b6d3c37333d714cfe89a01d8f933eb0edb470a7
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(); } |