From 051c1796548831c88d66ffefb157928c208310b0 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Tue, 7 May 2019 15:57:21 +0200 Subject: tools: silence unused variable warnings Signed-off-by: Denis 'GNUtoo' Carikli --- tools/ipc-test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/ipc-test.c') 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 -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; -- cgit v1.2.3