diff options
author | Michael Bestas <mkbestas@gmail.com> | 2021-01-06 19:23:51 +0200 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2021-01-15 22:12:20 +0200 |
commit | fd0c1dff85e60519dd9b47999842950c4b133704 (patch) | |
tree | 92c05f9da0d544c82ed23cf19a68082c56cf9a7b /gps/geofence | |
parent | d411e3b057cacf92b3c378e750a03d2ebb28639b (diff) |
sdm660-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
Diffstat (limited to 'gps/geofence')
-rw-r--r-- | gps/geofence/GeofenceAdapter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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]) { |