diff options
author | Bill Peckham <bpeckham@google.com> | 2018-09-24 16:43:13 -0700 |
---|---|---|
committer | Bill Peckham <bpeckham@google.com> | 2018-09-24 16:43:13 -0700 |
commit | 40e42bfff84f1b73e53913cfadf6504ec5adf31e (patch) | |
tree | 92dafb087b7ea519290d0a343358cc526648f051 /libutils/RefBase.cpp | |
parent | 76da659f67a0363e75756bbfb66bb7e8c90cf054 (diff) | |
parent | c1d7b74441779acaf1b5855a1c07d56822b498a4 (diff) |
Merge QP1A.180918.001
Change-Id: I6e221d7a92b6ecb92bb8364757522d4906b86877
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 c2a0bd864..53f1875a5 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(); } |