FP4: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
diff --git a/gps/geofence/GeofenceAdapter.cpp b/gps/geofence/GeofenceAdapter.cpp
index 1aeea0a..2d9f5bd 100644
--- a/gps/geofence/GeofenceAdapter.cpp
+++ b/gps/geofence/GeofenceAdapter.cpp
@@ -167,7 +167,7 @@
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 __unused) {}));
}
saveGeofenceItem(object.key.client, object.key.id, data.hwId, options, info);
}
@@ -245,7 +245,7 @@
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 __unused) {
mApi.addGeofence(mIds[i], mOptions[i], mInfos[i],
new LocApiResponseData<LocApiGeofenceData>(*mAdapter.getContext(),
[&mAdapter = mAdapter, mOptions = mOptions, mClient = mClient,
@@ -346,7 +346,7 @@
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 __unused) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
@@ -422,7 +422,7 @@
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 __unused) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
@@ -497,7 +497,7 @@
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 __unused) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {
@@ -580,7 +580,7 @@
} 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 __unused) {
uint32_t hwId = 0;
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
if (LOCATION_ERROR_SUCCESS == errs[i]) {