aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-05-07 15:57:21 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-24 17:10:07 +0200
commit051c1796548831c88d66ffefb157928c208310b0 (patch)
treef4a18c06fc3b681593bbc83861d4c9500304d086
parent6bde853dbe46a086a9afff36db966bfe69ec5d65 (diff)
downloadhardware_replicant_libsamsung-ipc-051c1796548831c88d66ffefb157928c208310b0.tar.gz
hardware_replicant_libsamsung-ipc-051c1796548831c88d66ffefb157928c208310b0.tar.bz2
hardware_replicant_libsamsung-ipc-051c1796548831c88d66ffefb157928c208310b0.zip
tools: silence unused variable warnings
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--tools/ipc-modem.c12
-rw-r--r--tools/ipc-test.c6
2 files changed, 12 insertions, 6 deletions
diff --git a/tools/ipc-modem.c b/tools/ipc-modem.c
index 935677b..b86eed2 100644
--- a/tools/ipc-modem.c
+++ b/tools/ipc-modem.c
@@ -276,7 +276,8 @@ void modem_response_call(struct ipc_client *client, struct ipc_message *resp)
}
}
-void modem_response_pwr(struct ipc_client *client, struct ipc_message *resp)
+void modem_response_pwr(__attribute__((unused)) struct ipc_client *client,
+ struct ipc_message *resp)
{
int state_n;
@@ -307,7 +308,8 @@ void modem_response_pwr(struct ipc_client *client, struct ipc_message *resp)
}
}
-void modem_response_net(struct ipc_client *client, struct ipc_message *resp)
+void modem_response_net(__attribute__((unused)) struct ipc_client *client,
+ struct ipc_message *resp)
{
struct ipc_net_regist_response_data *regi;
struct ipc_net_plmn_entry *plmn;
@@ -397,7 +399,8 @@ int modem_read_loop(struct ipc_client *client)
return 0;
}
-void modem_log_handler(void *user_data, const char *msg)
+void modem_log_handler(__attribute__((unused)) void *user_data,
+ const char *msg)
{
int i, l;
char *message;
@@ -421,7 +424,8 @@ void modem_log_handler(void *user_data, const char *msg)
free(message);
}
-void modem_log_handler_quiet(void *user_data, const char *msg)
+void modem_log_handler_quiet(__attribute__((unused)) void *user_data,
+ __attribute__((unused)) const char *msg)
{
return;
}
diff --git a/tools/ipc-test.c b/tools/ipc-test.c
index 6746371..cc8548f 100644
--- a/tools/ipc-test.c
+++ b/tools/ipc-test.c
@@ -23,7 +23,8 @@
#include <samsung-ipc.h>
-void log_callback(void *data, const char *message)
+void log_callback(__attribute__((unused)) void *data,
+ const char *message)
{
char *buffer;
size_t length;
@@ -47,7 +48,8 @@ void log_callback(void *data, const char *message)
free(buffer);
}
-int main(int args, char *argv[])
+int main(__attribute__((unused)) int args,
+ __attribute__((unused)) char *argv[])
{
struct ipc_client *client = NULL;
struct ipc_message message;