aboutsummaryrefslogtreecommitdiff
path: root/gps/android/2.1/location_api
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2022-01-28 10:15:12 -0800
committersinanmohd <pcmsinan@gmail.com>2023-01-05 21:27:38 +0530
commit37e3dbf077f36409be3f615d75003fd980ee628a (patch)
tree82a55865d9cbfb8e16ba5d5ad5b95f0da7b0a831 /gps/android/2.1/location_api
parent618cc64b4633f0eedafa8c55872091935de1bca8 (diff)
veux: Fix -Wbitwise-instead-of-logical
Bug: http://b/215753485 This warning is introduced in clang-r445002. In code where the bitwise operation was used to avoid short-ciruit evaluation, make that explicit by introducing temporary variables. Test: build with clang-r445002. Change-Id: Ia7ccf1d48922d926313f691888d26c3e314c1056
Diffstat (limited to 'gps/android/2.1/location_api')
-rw-r--r--gps/android/2.1/location_api/GnssAPIClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps/android/2.1/location_api/GnssAPIClient.cpp b/gps/android/2.1/location_api/GnssAPIClient.cpp
index 07f617d..dcd6119 100644
--- a/gps/android/2.1/location_api/GnssAPIClient.cpp
+++ b/gps/android/2.1/location_api/GnssAPIClient.cpp
@@ -648,7 +648,7 @@ void GnssAPIClient::onGnssNmeaCb(GnssNmeaNotification gnssNmeaNotification)
auto gnssCbIface_2_1(mGnssCbIface_2_1);
mMutex.unlock();
- if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) {
+ if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr|| gnssCbIface_2_1 != nullptr) {
const std::string s(gnssNmeaNotification.nmea);
std::stringstream ss(s);
std::string each;