remove clang-ism
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Fri, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
committerRoger Shimizu <rosh@debian.org>
Fri, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
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

index accc225db03ef84adb3bf010dba2b457b4f6139c..40a0d6d7235e0cbe65616da7463b73e390f904f0 100644 (file)
@@ -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<const void*>(string_pointer);
 }
 #pragma clang diagnostic pop