diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-09-17 11:29:34 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-09-17 11:29:34 -0700 |
commit | 378422465404e5490474c9f3700a93b4168044cb (patch) | |
tree | 3a52429656b76397b30f4dc6277472d2a4d23210 /libutils/RefBase.cpp | |
parent | 31d40d02358dc98860028761bcb0837ec97678cc (diff) | |
parent | 16fef65f9ed6e2f895a299ed347be27a0df58c56 (diff) |
Merge "Suppress implicit-fallthrough warnings."
am: 16fef65f9e
Change-Id: I71bdcd891f5d41fb90a9e7726aecbf2decdeed2c
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(); } |