diff options
author | Elliott Hughes <enh@google.com> | 2018-07-02 10:52:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-07-02 10:53:22 -0700 |
commit | 98c76496be76edcdcbc34ac6543c0f078510a26f (patch) | |
tree | aa9e06042e41d175812fe0ce652548623b704126 /base/include/android-base/macros.h | |
parent | 8b80960417edc4ede3f78349b60fc6bdd831efd2 (diff) | |
download | system_core-98c76496be76edcdcbc34ac6543c0f078510a26f.tar.gz system_core-98c76496be76edcdcbc34ac6543c0f078510a26f.tar.bz2 system_core-98c76496be76edcdcbc34ac6543c0f078510a26f.zip |
libbase: assume clang.
Bug: N/A
Test: builds
Change-Id: Ic3d3bee26496025324a3d070e3fcbf6d7b917709
Diffstat (limited to 'base/include/android-base/macros.h')
-rw-r--r-- | base/include/android-base/macros.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/base/include/android-base/macros.h b/base/include/android-base/macros.h index 0c8eac03c..49cc0c980 100644 --- a/base/include/android-base/macros.h +++ b/base/include/android-base/macros.h @@ -170,17 +170,7 @@ void UNUSED(const T&...) { // // In either case this macro has no effect on runtime behavior and performance // of code. -#if defined(__clang__) && defined(__has_warning) -#if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") #define FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT -#endif -#endif - -#ifndef FALLTHROUGH_INTENDED -#define FALLTHROUGH_INTENDED \ - do { \ - } while (0) -#endif // Current ABI string #if defined(__arm__) |