diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2022-01-31 22:23:58 -0800 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2022-01-31 22:23:58 -0800 |
commit | 9e35bc0633ae2260fdd25806bed39d5f568e849b (patch) | |
tree | 33206ff2dd95094da347422c5f6891e21c8c762d | |
parent | 03bbf612b7adbc6d483de0f684850f872de2e31f (diff) | |
download | DnsResolver-9e35bc0633ae2260fdd25806bed39d5f568e849b.tar.gz |
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
-rw-r--r-- | tests/resolv_stats_test_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |