From: Android Tools Maintainers Date: Tue, 31 Jan 2023 07:58:29 +0000 (+0000) Subject: remove clang-ism X-Git-Tag: archive/raspbian/29.0.6-26+rpi1^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0e3fe4b6a86b68b6d9583eac7a80b0e60cc05c8a;p=android-platform-tools.git remove clang-ism Forwarded: not-needed Gbp-Pq: Topic system/core Gbp-Pq: Name fix-attribute-issue-with-gcc.patch --- 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