From f628a0e76722f20704ee0587af111a76b1a329ea Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 17 Jun 2011 08:54:19 +0200 Subject: Mark unused parameters as __attribute__((unused)) or remove them if not part of the ext2lib ABI --- ext2load/ext2io.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'ext2load/ext2io.c') diff --git a/ext2load/ext2io.c b/ext2load/ext2io.c index 6f12b60..aa4b4c0 100644 --- a/ext2load/ext2io.c +++ b/ext2load/ext2io.c @@ -670,8 +670,11 @@ arc_read_blk(io_channel channel, unsigned long block, int count, void *buf) } static errcode_t -arc_write_blk (io_channel channel, unsigned long block, int count, - const void *buf) { +arc_write_blk (io_channel channel, + unsigned long block, + int count __attribute__((unused)), + const void *buf __attribute__((unused))) +{ struct arc_private_data *priv; errcode_t status; @@ -717,7 +720,7 @@ static errcode_t arc_flush(io_channel channel) /* Hack in some stuff to make ext2fs library work */ -time_t time(time_t *t) +time_t time(time_t *t __attribute__((unused))) { return 0; } @@ -742,7 +745,10 @@ struct et_list { }; struct et_list *_et_list = NULL; -void com_err(const char *whoami, long error, const char *format, ...) +void com_err(const char *whoami __attribute__((unused)), + long error, + const char *format __attribute__((unused)), + ...) { printf("com_err called with %lu\n", error); } -- cgit v1.2.3