diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-16 22:09:13 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-06-20 16:17:25 +0200 |
commit | 6d1b7039805cfa95c833a2257f4f19a4c4023ff3 (patch) | |
tree | c647f84e094575c9adc92ebb38f62785a4e673b4 | |
parent | 930a2bc9f5ab84843551c8a939dc70a52dc066ef (diff) | |
download | hardware_replicant_libsamsung-ril-6d1b7039805cfa95c833a2257f4f19a4c4023ff3.tar.gz hardware_replicant_libsamsung-ril-6d1b7039805cfa95c833a2257f4f19a4c4023ff3.tar.bz2 hardware_replicant_libsamsung-ril-6d1b7039805cfa95c833a2257f4f19a4c4023ff3.zip |
Silence warnings about unused parameters
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | call.c | 21 | ||||
-rw-r--r-- | data.c | 9 | ||||
-rw-r--r-- | ipc.c | 3 | ||||
-rw-r--r-- | misc.c | 17 | ||||
-rw-r--r-- | network.c | 47 | ||||
-rw-r--r-- | power.c | 4 | ||||
-rw-r--r-- | samsung-ril.c | 7 | ||||
-rw-r--r-- | sim.c | 4 |
8 files changed, 74 insertions, 38 deletions
@@ -124,7 +124,7 @@ complete: return rc; } -int ipc_call_incoming(struct ipc_message *message) +int ipc_call_incoming(__attribute__((unused)) struct ipc_message *message) { ril_request_unsolicited(RIL_UNSOL_CALL_RING, NULL, 0); @@ -133,7 +133,8 @@ int ipc_call_incoming(struct ipc_message *message) return 0; } -int ril_request_hangup(void *data, size_t size, RIL_Token token) +int ril_request_hangup(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, RIL_Token token) { int hangup; int rc; @@ -169,7 +170,9 @@ complete: return rc; } -int ril_request_answer(void *data, size_t size, RIL_Token token) +int ril_request_answer(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { int rc; @@ -228,7 +231,9 @@ int ipc_call_status(struct ipc_message *message) return 0; } -int ril_request_last_call_fail_cause(void *data, size_t size, RIL_Token token) +int ril_request_last_call_fail_cause(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { void *fail_cause_data; size_t fail_cause_size; @@ -339,7 +344,9 @@ complete: return 0; } -int ril_request_get_current_calls(void *data, size_t size, RIL_Token token) +int ril_request_get_current_calls(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { int rc; @@ -647,7 +654,9 @@ int ril_request_dtmf_stop_complete(unsigned char aseq, int callback) return 0; } -int ril_request_dtmf_stop(void *data, size_t size, RIL_Token token) +int ril_request_dtmf_stop(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ril_request *request; void *dtmf_data; @@ -660,7 +660,9 @@ int ipc_gprs_pdp_context(struct ipc_message *message) return 0; } -int ril_request_data_call_list(void *data, size_t size, RIL_Token token) +int ril_request_data_call_list(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { int rc; @@ -1015,8 +1017,9 @@ complete: return 0; } -int ril_request_last_data_call_fail_cause(void *data, size_t size, - RIL_Token token) +int ril_request_last_data_call_fail_cause(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { void *fail_cause_data; size_t fail_cause_size; @@ -32,7 +32,8 @@ * Utils */ -void ipc_log_handler(void *log_data, const char *message) +void ipc_log_handler(__attribute__((unused)) void *log_data, + const char *message) { RIL_LOGD("%s", message); } @@ -29,7 +29,6 @@ int ipc_misc_me_version(struct ipc_message *message) { struct ipc_misc_me_version_response_data *data; char *baseband_version; - int active; if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_misc_me_version_response_data)) return -1; @@ -48,7 +47,9 @@ int ipc_misc_me_version(struct ipc_message *message) return 0; } -int ril_request_baseband_version(void *data, size_t size, RIL_Token token) +int ril_request_baseband_version(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ipc_misc_me_version_request_data request_data; struct ril_request *request; @@ -105,7 +106,9 @@ int ipc_misc_me_imsi(struct ipc_message *message) return 0; } -int ril_request_get_imsi(void *data, size_t size, RIL_Token token) +int ril_request_get_imsi(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ril_request *request; int rc; @@ -178,7 +181,9 @@ int ipc_misc_me_sn(struct ipc_message *message) return 0; } -int ril_request_get_imei(void *data, size_t size, RIL_Token token) +int ril_request_get_imei(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ipc_misc_me_sn_request_data request_data; struct ril_request *request; @@ -208,7 +213,9 @@ int ril_request_get_imei(void *data, size_t size, RIL_Token token) return RIL_REQUEST_HANDLED; } -int ril_request_get_imeisv(void *data, size_t size, RIL_Token token) +int ril_request_get_imeisv(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ipc_misc_me_sn_request_data request_data; struct ril_request *request; @@ -445,7 +445,9 @@ int ipc_disp_icon_info(struct ipc_message *message) return 0; } -int ril_request_signal_strength(void *data, size_t size, RIL_Token token) +int ril_request_signal_strength(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ipc_disp_icon_info_request_data request_data; int rc; @@ -519,8 +521,9 @@ int ipc_net_plmn_sel(struct ipc_message *message) return 0; } -int ril_request_query_network_selection_mode(void *data, size_t size, - RIL_Token token) +int ril_request_query_network_selection_mode(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { int rc; @@ -563,8 +566,9 @@ int ipc_net_plmn_sel_callback(struct ipc_message *message) return 0; } -int ril_request_set_network_selection_automatic(void *data, size_t size, - RIL_Token token) +int ril_request_set_network_selection_automatic(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ipc_net_plmn_sel_request_data request_data; int rc; @@ -682,7 +686,9 @@ int ipc_net_serving_network(struct ipc_message *message) return 0; } -int ril_request_operator(void *data, size_t size, RIL_Token token) +int ril_request_operator(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ril_request *request; void *operator_data; @@ -811,8 +817,9 @@ complete: return 0; } -int ril_request_query_available_networks(void *data, size_t size, - RIL_Token token) +int ril_request_query_available_networks(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { struct ril_request *request; int rc; @@ -939,10 +946,13 @@ complete: } #if RIL_VERSION >= 6 -int ril_request_voice_registration_state(void *data, size_t size, - RIL_Token token) +int ril_request_voice_registration_state(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) #else -int ril_request_registration_state(void *data, size_t size, RIL_Token token) +int ril_request_registration_state(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) #endif { struct ipc_net_regist_request_data request_data; @@ -1011,11 +1021,13 @@ complete: } #if RIL_VERSION >= 6 -int ril_request_data_registration_state(void *data, size_t size, - RIL_Token token) +int ril_request_data_registration_state(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) #else -int ril_request_gprs_registration_state(void *data, size_t size, - RIL_Token token) +int ril_request_gprs_registration_state(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) #endif { struct ipc_net_regist_request_data request_data; @@ -1108,8 +1120,9 @@ int ipc_net_mode_sel(struct ipc_message *message) return 0; } -int ril_request_get_preferred_network_type(void *data, size_t size, - RIL_Token token) +int ril_request_get_preferred_network_type(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { int rc; @@ -26,14 +26,14 @@ #include <samsung-ril.h> #include <utils.h> -int ipc_pwr_phone_pwr_up(struct ipc_message *message) +int ipc_pwr_phone_pwr_up(__attribute__((unused)) struct ipc_message *message) { ril_radio_state_update(RADIO_STATE_OFF); return 0; } -int ipc_pwr_phone_reset(struct ipc_message *message) +int ipc_pwr_phone_reset(__attribute__((unused)) struct ipc_message *message) { ril_radio_state_update(RADIO_STATE_OFF); diff --git a/samsung-ril.c b/samsung-ril.c index 6eee5e8..84e3074 100644 --- a/samsung-ril.c +++ b/samsung-ril.c @@ -902,7 +902,7 @@ int ril_request_dispatch(struct ril_request *request) return 0; } -void *ril_request_loop(void *data) +void *ril_request_loop(__attribute__((unused)) void *data) { struct ril_request *request; int rc; @@ -1467,8 +1467,9 @@ RIL_RadioFunctions ril_radio_functions = { ril_get_version }; -const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, - char **argv) +const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, + __attribute__((unused)) int argc, + __attribute__((unused)) char **argv) { RIL_RadioFunctions *radio_functions; pthread_attr_t attr; @@ -257,7 +257,9 @@ int ipc_sec_pin_status(struct ipc_message *message) return 0; } -int ril_request_get_sim_status(void *data, size_t size, RIL_Token token) +int ril_request_get_sim_status(__attribute__((unused)) void *data, + __attribute__((unused)) size_t size, + RIL_Token token) { void *card_status_data; size_t card_status_size; |