summaryrefslogtreecommitdiffstats
path: root/base/logging_test.cpp
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-11-29 18:06:11 -0800
committerDan Willemsen <dwillemsen@google.com>2017-11-29 21:37:28 -0800
commit528f144e779dfd18b550d9176aecf36e1130f449 (patch)
treef8b8faf502550eabda14c99bcaffd4f3d25a205d /base/logging_test.cpp
parent70fda27eb2a72958636c8026be7cc72881bdff25 (diff)
downloadsystem_core-528f144e779dfd18b550d9176aecf36e1130f449.tar.gz
system_core-528f144e779dfd18b550d9176aecf36e1130f449.tar.bz2
system_core-528f144e779dfd18b550d9176aecf36e1130f449.zip
Fix / suppress new unused warnings for mingw+clang
Bug: 69933068 Test: mmma system/core Change-Id: I089166a979d3d8c5ada38a7745d507b555048499
Diffstat (limited to 'base/logging_test.cpp')
-rw-r--r--base/logging_test.cpp2
1 files changed, 2 insertions, 0 deletions
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) {