From dd2ea5fd682b797d60ef138a9b81330830185fb7 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Mon, 18 Mar 2019 22:16:14 -0700 Subject: [PATCH] Suppress -Wstring-plus-int warning The code section is already marked as to be removed, simply suppress the -Wstring-plus-int warning. Test: m checkbuild Bug: 128878287 Change-Id: I95a03aca90dbb5d27db49f5baf534cbaacf9b830 --- liblog/logger_write.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liblog/logger_write.cpp b/liblog/logger_write.cpp index 908fe7fd8..7fa3f436b 100644 --- a/liblog/logger_write.cpp +++ b/liblog/logger_write.cpp @@ -413,6 +413,8 @@ int __android_log_buf_write(int bufID, int prio, const char* tag, const char* ms if (!tag) tag = ""; /* XXX: This needs to go! */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstring-plus-int" if (bufID != LOG_ID_RADIO) { switch (tag[0]) { case 'H': @@ -454,6 +456,7 @@ int __android_log_buf_write(int bufID, int prio, const char* tag, const char* ms break; } } +#pragma clang diagnostic pop #if __BIONIC__ if (prio == ANDROID_LOG_FATAL) {