mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 11:33:32 +00:00
sm6375-common: Fix Wbitwise-instead-of-logical introduced by clang-r445002
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 Signed-off-by: kleidione <kleidione@gmail.com>
This commit is contained in:
committed by
Ramii Ahmed
parent
51e407c4c1
commit
57b2869a91
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user