From b7e06b2a16774d7f219c10be69abee4a43c39a01 Mon Sep 17 00:00:00 2001 From: karthik1896 Date: Wed, 17 Aug 2022 00:25:55 +0530 Subject: [PATCH] sdm660-common: gps: Fix error: use of bitwise '|' with boolean operands * fixes device/asus/sdm660-common/gps/android/2.1/location_api/GnssAPIClient.cpp:651:35: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) { Signed-off-by: karthik1896 Signed-off-by: wHo-EM-i Signed-off-by: pix106 --- gps/android/2.1/location_api/GnssAPIClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gps/android/2.1/location_api/GnssAPIClient.cpp b/gps/android/2.1/location_api/GnssAPIClient.cpp index 07f617d0..dcd61191 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;