From 28d46310f8fb489b9311e804232ee7dbe3aa55c1 Mon Sep 17 00:00:00 2001 From: Android Tools Maintainers Date: Sat, 28 May 2022 12:13:51 +0100 Subject: [PATCH] remove clang-ism Forwarded: not-needed Gbp-Pq: Topic system/core Gbp-Pq: Name fix-attribute-issue-with-gcc.patch --- system/core/base/include/android-base/logging.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/core/base/include/android-base/logging.h b/system/core/base/include/android-base/logging.h index accc225d..40a0d6d7 100644 --- a/system/core/base/include/android-base/logging.h +++ b/system/core/base/include/android-base/logging.h @@ -451,10 +451,7 @@ namespace std { // NOLINT(cert-dcl58-cpp) // -Wno-user-defined-warnings to CPPFLAGS. #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" -#define OSTREAM_STRING_POINTER_USAGE_WARNING \ - __attribute__((diagnose_if(true, "Unexpected logging of string pointer", "warning"))) -inline OSTREAM_STRING_POINTER_USAGE_WARNING -std::ostream& operator<<(std::ostream& stream, const std::string* string_pointer) { +inline std::ostream& operator<<(std::ostream& stream, const std::string* string_pointer) { return stream << static_cast(string_pointer); } #pragma clang diagnostic pop -- 2.30.2