diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-09-18 03:08:48 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-09-18 03:08:48 +0000 |
commit | c1d7b74441779acaf1b5855a1c07d56822b498a4 (patch) | |
tree | 1bdd58c0a04f1e8bedfee22f03694b6dc3bfa350 /libutils/RefBase.cpp | |
parent | 2833c7dc7635380a0b985273632135fec2fc0c33 (diff) | |
parent | 77f1256a8bf58af31d10090cf9f55fc733d9dbfa (diff) |
Snap for 5015065 from 77f1256a8bf58af31d10090cf9f55fc733d9dbfa to qt-release
Change-Id: I6382e7baded8f8c05c12ef38a659c2fa5db763f9
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(); } |