From 528f144e779dfd18b550d9176aecf36e1130f449 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 29 Nov 2017 18:06:11 -0800 Subject: Fix / suppress new unused warnings for mingw+clang Bug: 69933068 Test: mmma system/core Change-Id: I089166a979d3d8c5ada38a7745d507b555048499 --- base/logging_test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'base/logging_test.cpp') diff --git a/base/logging_test.cpp b/base/logging_test.cpp index adb041b32..6f05d9b7f 100644 --- a/base/logging_test.cpp +++ b/base/logging_test.cpp @@ -192,6 +192,7 @@ TEST(logging, WOULD_LOG_VERBOSE_enabled) { #undef CHECK_WOULD_LOG_ENABLED +#if !defined(_WIN32) static std::string make_log_pattern(android::base::LogSeverity severity, const char* message) { static const char log_characters[] = "VDIWEFF"; @@ -203,6 +204,7 @@ static std::string make_log_pattern(android::base::LogSeverity severity, "%c \\d+-\\d+ \\d+:\\d+:\\d+ \\s*\\d+ \\s*\\d+ %s:\\d+] %s", log_char, basename(&holder[0]), message); } +#endif static void CheckMessage(const CapturedStderr& cap, android::base::LogSeverity severity, const char* expected) { -- cgit v1.2.3