Fix unused parameter warnings
authorJeremy Kerr <jk@ozlabs.org>
Sun, 1 Feb 2009 00:19:19 +0000 (11:19 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 1 Feb 2009 00:19:19 +0000 (11:19 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/discover-server.c
discover/kboot-parser.c

index 8d3e877ad2379b661379a13fa28998127b3e5ecc..7e5819c5bd972d8284a9f70ac1c9eb1efbb9d0bb 100644 (file)
@@ -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)
 
 {
index 8d7283811eb0af721404f85c90a7891cb522a157..b2025cce5e233e4f1232bba021303bb9733b5abe 100644 (file)
@@ -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;
index f8cd61d5b2e66a2cd971265cdcecccd6822d9af3..712456142f903c01ec04b17fb89c41ae587b64c3 100644 (file)
@@ -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;