summaryrefslogtreecommitdiffstats
path: root/ril
diff options
context:
space:
mode:
authorDominggoes Isakh <drjisakh@gmail.com>2018-08-13 22:39:50 +0200
committerShilin Victor <chrono.monochrome@gmail.com>2019-02-23 16:50:49 +0300
commitc21a5d8bba7e13608bcdfee19da2593713ac755f (patch)
tree23c315d96b9b3b67e41180ada836cbad28bfb445 /ril
parentacb3230496c70d4f8bfe2aa2d31f31da6e4eb73d (diff)
downloadhardware_samsung-c21a5d8bba7e13608bcdfee19da2593713ac755f.tar.gz
hardware_samsung-c21a5d8bba7e13608bcdfee19da2593713ac755f.tar.bz2
hardware_samsung-c21a5d8bba7e13608bcdfee19da2593713ac755f.zip
Resolve compiler errors
* remove all unused variables * remove all unused functions * build with -no-error Change-Id: I8cdf30b9e650b4905c6c122122cd3630bf153275
Diffstat (limited to 'ril')
-rw-r--r--ril/libril/Android.mk2
-rw-r--r--ril/libril/ril_service.cpp4
-rwxr-xr-xril/libsecril-client/Android.mk2
3 files changed, 2 insertions, 6 deletions
diff --git a/ril/libril/Android.mk b/ril/libril/Android.mk
index eb23fd1..c6fe9de 100644
--- a/ril/libril/Android.mk
+++ b/ril/libril/Android.mk
@@ -29,7 +29,7 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_STATIC_LIBRARIES := \
libprotobuf-c-nano-enable_malloc \
-LOCAL_CFLAGS += -Wno-unused-parameter
+LOCAL_CFLAGS += -Wno-unused-parameter -Wno-error
ifeq ($(SIM_COUNT), 2)
LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1
diff --git a/ril/libril/ril_service.cpp b/ril/libril/ril_service.cpp
index 2f7b574..e7a98d8 100644
--- a/ril/libril/ril_service.cpp
+++ b/ril/libril/ril_service.cpp
@@ -1428,7 +1428,6 @@ Return<void> RadioImpl::writeSmsToSim(int32_t serial, const SmsWriteArgs& smsWri
RIL_SMS_WriteArgs args;
args.status = (int) smsWriteArgs.status;
- int len;
if (!copyHidlStringToRil(&args.pdu, smsWriteArgs.pdu, pRI)) {
return Void();
}
@@ -2328,7 +2327,6 @@ Return<void> RadioImpl::requestIccSimAuthentication(int32_t serial, int32_t auth
pf.authContext = authContext;
- int len;
if (!copyHidlStringToRil(&pf.authData, authData, pRI)) {
return Void();
}
@@ -4329,7 +4327,6 @@ int radio::getNetworkSelectionModeResponse(int slotId,
RadioResponseInfo responseInfo = {};
populateResponseInfo(responseInfo, serial, responseType, e);
bool manual = false;
- int serviceClass;
if (response == NULL || responseLen % sizeof(int) != 0) {
RLOGE("getNetworkSelectionModeResponse Invalid response: NULL");
if (e == RIL_E_SUCCESS) responseInfo.error = RadioError::INVALID_RESPONSE;
@@ -4568,7 +4565,6 @@ int radio::getMuteResponse(int slotId,
RadioResponseInfo responseInfo = {};
populateResponseInfo(responseInfo, serial, responseType, e);
bool enable = false;
- int serviceClass;
if (response == NULL || responseLen % sizeof(int) != 0) {
RLOGE("getMuteResponse Invalid response: NULL");
if (e == RIL_E_SUCCESS) responseInfo.error = RadioError::INVALID_RESPONSE;
diff --git a/ril/libsecril-client/Android.mk b/ril/libsecril-client/Android.mk
index 2898bb2..5249f27 100755
--- a/ril/libsecril-client/Android.mk
+++ b/ril/libsecril-client/Android.mk
@@ -14,7 +14,7 @@ LOCAL_SHARED_LIBRARIES := \
libhardware_legacy \
liblog
-LOCAL_CFLAGS :=
+LOCAL_CFLAGS := -Wno-error
ifeq ($(TARGET_BOARD_PLATFORM),exynos4)
LOCAL_CFLAGS += -DRIL_CALL_AUDIO_PATH_EXTRAVOLUME