From 61679084243c471053b0b1b9865b40d721586958 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sun, 1 Feb 2009 11:19:19 +1100 Subject: [PATCH 1/1] Fix unused parameter warnings Signed-off-by: Jeremy Kerr --- discover/device-handler.c | 3 ++- discover/discover-server.c | 3 ++- discover/kboot-parser.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/discover/device-handler.c b/discover/device-handler.c index 8d3e877..7e5819c 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -53,7 +53,8 @@ static struct device device = { .icon_file = "meep.png", }; -int device_handler_get_current_devices(struct device_handler *handler, +int device_handler_get_current_devices( + struct device_handler *handler __attribute__((unused)), struct device **devices) { diff --git a/discover/discover-server.c b/discover/discover-server.c index 8d72838..b2025cc 100644 --- a/discover/discover-server.c +++ b/discover/discover-server.c @@ -76,7 +76,8 @@ static void print_clients(struct discover_server *server) client->fd); } -static int client_write_message(struct discover_server *server, +static int client_write_message( + struct discover_server *server __attribute__((unused)), struct client *client, struct pb_protocol_message *message) { int rc; diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index f8cd61d..7124561 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -117,7 +117,9 @@ static int check_for_global_option(struct kboot_context *ctx, return 0; } -static char *get_global_option(struct kboot_context *ctx, const char *name) +static char *get_global_option( + struct kboot_context *ctx __attribute__((unused)), + const char *name) { int i; -- 2.39.2