From 217e7544897c45976a7feff5fbe9c19627e94dfd Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Mon, 14 Mar 2016 15:30:09 +0530 Subject: Enabling CLANG compilation and fixing all resulting errors Removing statement to set LOCAL_CLANG flag explicity to true. It will be true by default. Change-Id: I2eaba5a89e64088e3383b962dceaaa7e975e997a CRs-Fixed: 989476 --- core/LocApiBase.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core/LocApiBase.h') diff --git a/core/LocApiBase.h b/core/LocApiBase.h index b1c3d30..713ca91 100644 --- a/core/LocApiBase.h +++ b/core/LocApiBase.h @@ -214,9 +214,15 @@ public: virtual void installAGpsCert(const DerEncodedCertificate* pData, size_t length, uint32_t slotBitMask); - inline virtual void setInSession(bool inSession) {} + inline virtual void setInSession(bool inSession) { + + (void)inSession; + } inline bool isMessageSupported (LocCheckingMessagesID msgID) const { - if (msgID > (sizeof(mSupportedMsg) << 3)) { + + // confirm if msgID is not larger than the number of bits in + // mSupportedMsg + if ((uint64_t)msgID > (sizeof(mSupportedMsg) << 3)) { return false; } else { uint32_t messageChecker = 1 << msgID; -- cgit v1.2.3