diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-06-17 08:54:19 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-06-17 08:54:19 +0200 |
commit | f628a0e76722f20704ee0587af111a76b1a329ea (patch) | |
tree | 149800f335161387b4081834eae371fa0b54e602 /ext2load/ext2io.c | |
parent | 804c3aa900eb4fb3a379efab43224aff7b9a30cc (diff) |
Mark unused parameters as __attribute__((unused))
or remove them if not part of the ext2lib ABI
Diffstat (limited to 'ext2load/ext2io.c')
-rw-r--r-- | ext2load/ext2io.c | 14 |
1 files changed, 10 insertions, 4 deletions
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); } |