summaryrefslogtreecommitdiffstats
path: root/base/include/android-base/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/include/android-base/macros.h')
-rw-r--r--base/include/android-base/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/include/android-base/macros.h b/base/include/android-base/macros.h
index 49cc0c980..174866570 100644
--- a/base/include/android-base/macros.h
+++ b/base/include/android-base/macros.h
@@ -170,7 +170,9 @@ void UNUSED(const T&...) {
//
// In either case this macro has no effect on runtime behavior and performance
// of code.
+#ifndef FALLTHROUGH_INTENDED
#define FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT
+#endif
// Current ABI string
#if defined(__arm__)