summaryrefslogtreecommitdiff
path: root/core/LocApiBase.h
diff options
context:
space:
mode:
authorSaurabh Srivastava <ssrivast@codeaurora.org>2016-03-14 15:30:09 +0530
committerSaurabh Srivastava <ssrivast@codeaurora.org>2016-03-17 12:33:17 +0530
commit217e7544897c45976a7feff5fbe9c19627e94dfd (patch)
tree86ad9df09dc3f09d924adf0608daef3cb5639577 /core/LocApiBase.h
parentbf0959bbd9fad70b9c9a7b1724f68bac341b3c12 (diff)
downloadgps-217e7544897c45976a7feff5fbe9c19627e94dfd.tar.gz
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
Diffstat (limited to 'core/LocApiBase.h')
-rw-r--r--core/LocApiBase.h10
1 files changed, 8 insertions, 2 deletions
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;