summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@gmail.com>2021-01-06 19:23:51 +0200
committerMichael Bestas <mkbestas@lineageos.org>2021-01-15 22:12:20 +0200
commitfd0c1dff85e60519dd9b47999842950c4b133704 (patch)
tree92c05f9da0d544c82ed23cf19a68082c56cf9a7b
parentd411e3b057cacf92b3c378e750a03d2ebb28639b (diff)
sdm660-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
-rw-r--r--gps/android/2.0/GnssConfiguration.cpp2
-rw-r--r--gps/core/LocAdapterBase.cpp8
-rw-r--r--gps/geofence/GeofenceAdapter.cpp12
-rw-r--r--gps/gnss/XtraSystemStatusObserver.cpp4
-rw-r--r--gps/utils/LocIpc.h2
5 files changed, 14 insertions, 14 deletions
diff --git a/gps/android/2.0/GnssConfiguration.cpp b/gps/android/2.0/GnssConfiguration.cpp
index 363d2b1..60fe5ef 100644
--- a/gps/android/2.0/GnssConfiguration.cpp
+++ b/gps/android/2.0/GnssConfiguration.cpp
@@ -39,7 +39,7 @@ GnssConfiguration::GnssConfiguration(Gnss* gnss) : mGnss(gnss) {
}
// Methods from ::android::hardware::gps::V1_0::IGnssConfiguration follow.
-Return<bool> GnssConfiguration::setSuplEs(bool enabled) {
+Return<bool> GnssConfiguration::setSuplEs(bool /*enabled*/) {
// deprecated function. Must return false to pass VTS
return false;
}
diff --git a/gps/core/LocAdapterBase.cpp b/gps/core/LocAdapterBase.cpp
index 1b844e5..291359d 100644
--- a/gps/core/LocAdapterBase.cpp
+++ b/gps/core/LocAdapterBase.cpp
@@ -81,8 +81,8 @@ void LocAdapterBase::
const GpsLocationExtended& locationExtended,
enum loc_sess_status status,
LocPosTechMask loc_technology_mask,
- GnssDataNotification* pDataNotify,
- int msInWeek)
+ GnssDataNotification* /*pDataNotify*/,
+ int /*msInWeek*/)
{
if (mLocAdapterProxyBase != NULL) {
mLocAdapterProxyBase->reportPositionEvent((UlpLocation&)location,
@@ -155,7 +155,7 @@ DEFAULT_IMPL(false)
bool LocAdapterBase::
requestNiNotifyEvent(const GnssNiNotification &/*notify*/,
const void* /*data*/,
- const LocInEmergency emergencyState)
+ const LocInEmergency /*emergencyState*/)
DEFAULT_IMPL(false)
void LocAdapterBase::
@@ -324,7 +324,7 @@ LocAdapterBase::updateClientsEventMask()
DEFAULT_IMPL()
void
-LocAdapterBase::stopClientSessions(LocationAPI* client)
+LocAdapterBase::stopClientSessions(LocationAPI* /*client*/)
DEFAULT_IMPL()
void
diff --git a/gps/geofence/GeofenceAdapter.cpp b/gps/geofence/GeofenceAdapter.cpp
index e299589..d51bd04 100644
--- a/gps/geofence/GeofenceAdapter.cpp
+++ b/gps/geofence/GeofenceAdapter.cpp
@@ -167,7 +167,7 @@ GeofenceAdapter::restartGeofences()
if (LOCATION_ERROR_SUCCESS == err) {
if (true == object.paused) {
mLocApi->pauseGeofence(data.hwId, object.key.id,
- new LocApiResponse(*getContext(), [] (LocationError err ) {}));
+ new LocApiResponse(*getContext(), [] (LocationError /*err*/) {}));
}
saveGeofenceItem(object.key.client, object.key.id, data.hwId, options, info);
}
@@ -245,7 +245,7 @@ GeofenceAdapter::addGeofencesCommand(LocationAPI* client, size_t count, Geofence
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient,
mOptions = mOptions, mInfos = mInfos, mIds = mIds, &mApi = mApi,
- errs, i] (LocationError err ) {
+ errs, i] (LocationError /*err*/) {
mApi.addGeofence(mIds[i], mOptions[i], mInfos[i],
new LocApiResponseData<LocApiGeofenceData>(*mAdapter.getContext(),
[&mAdapter = mAdapter, mOptions = mOptions, mClient = mClient,
@@ -346,7 +346,7 @@ GeofenceAdapter::removeGeofencesCommand(LocationAPI* client, size_t count, uint3
for (size_t i=0; i < mCount; ++i) {
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
- &mApi = mApi, errs, i] (LocationError err ) {
+ &mApi = mApi, errs, i] (LocationError /*err*/) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
@@ -422,7 +422,7 @@ GeofenceAdapter::pauseGeofencesCommand(LocationAPI* client, size_t count, uint32
for (size_t i=0; i < mCount; ++i) {
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
- &mApi = mApi, errs, i] (LocationError err ) {
+ &mApi = mApi, errs, i] (LocationError /*err*/) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
@@ -497,7 +497,7 @@ GeofenceAdapter::resumeGeofencesCommand(LocationAPI* client, size_t count, uint3
for (size_t i=0; i < mCount; ++i) {
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
- &mApi = mApi, errs, i] (LocationError err ) {
+ &mApi = mApi, errs, i] (LocationError /*err*/) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
@@ -580,7 +580,7 @@ GeofenceAdapter::modifyGeofencesCommand(LocationAPI* client, size_t count, uint3
} else {
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
- &mApi = mApi, mOptions = mOptions, errs, i] (LocationError err ) {
+ &mApi = mApi, mOptions = mOptions, errs, i] (LocationError /*err*/) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
diff --git a/gps/gnss/XtraSystemStatusObserver.cpp b/gps/gnss/XtraSystemStatusObserver.cpp
index a58f735..0f48a44 100644
--- a/gps/gnss/XtraSystemStatusObserver.cpp
+++ b/gps/gnss/XtraSystemStatusObserver.cpp
@@ -65,8 +65,8 @@ public:
inline XtraIpcListener(IOsObserver* observer, const MsgTask* msgTask,
XtraSystemStatusObserver& xsso) :
mSystemStatusObsrvr(observer), mMsgTask(msgTask), mXSSO(xsso) {}
- virtual void onReceive(const char* data, uint32_t length,
- const LocIpcRecver* recver) override {
+ virtual void onReceive(const char* data, uint32_t /*length*/,
+ const LocIpcRecver* /*recver*/) override {
#define STRNCMP(str, constStr) strncmp(str, constStr, sizeof(constStr)-1)
if (!STRNCMP(data, "ping")) {
LOC_LOGd("ping received");
diff --git a/gps/utils/LocIpc.h b/gps/utils/LocIpc.h
index d6f8d1d..e13bd5c 100644
--- a/gps/utils/LocIpc.h
+++ b/gps/utils/LocIpc.h
@@ -132,7 +132,7 @@ public:
inline bool sendData(const uint8_t data[], uint32_t length, int32_t msgId) const {
return isSendable() && (send(data, length, msgId) > 0);
}
- virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {
+ virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& /*listener*/) {
return nullptr;
}
};