From 9e35bc0633ae2260fdd25806bed39d5f568e849b Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Mon, 31 Jan 2022 22:23:58 -0800 Subject: Fix -Wbitwise-instead-of-logical Bg: http://b/215753485 This warning is triggered by the new clang-r445002 prebuilt. error: use of bitwise '|' with boolean operands [-Werror,-Wbi twise-instead-of-logical] if (match_str == "}" | match_str == "},") { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ || Test: Build with new clang and verify absence of warning. Change-Id: I91465a30e33827317731c8874489eeafd89adfa6 --- tests/resolv_stats_test_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/resolv_stats_test_utils.cpp b/tests/resolv_stats_test_utils.cpp index 06eff1bd..dfebf7ae 100644 --- a/tests/resolv_stats_test_utils.cpp +++ b/tests/resolv_stats_test_utils.cpp @@ -78,7 +78,7 @@ NetworkDnsEventReported fromNetworkDnsEventReportedStr(const std::string& str) { } continue; } - if (match_str == "}" | match_str == "},") { + if (match_str == "}" || match_str == "},") { strproto--; continue; } -- cgit v1.2.3