aboutsummaryrefslogtreecommitdiff
path: root/ext2load
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-06-17 08:54:19 +0200
committerGuido Günther <agx@sigxcpu.org>2011-06-17 08:54:19 +0200
commitf628a0e76722f20704ee0587af111a76b1a329ea (patch)
tree149800f335161387b4081834eae371fa0b54e602 /ext2load
parent804c3aa900eb4fb3a379efab43224aff7b9a30cc (diff)
Mark unused parameters as __attribute__((unused))
or remove them if not part of the ext2lib ABI
Diffstat (limited to 'ext2load')
-rw-r--r--ext2load/ext2io.c14
-rw-r--r--ext2load/loader.c5
2 files changed, 13 insertions, 6 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);
}
diff --git a/ext2load/loader.c b/ext2load/loader.c
index 2b1192f..44203b6 100644
--- a/ext2load/loader.c
+++ b/ext2load/loader.c
@@ -513,7 +513,8 @@ void printCmdLine(int argc, CHAR *argv[])
printf("%u: %s\n\r", i, argv[i]);
}
-void _start64(LONG argc, CHAR * argv[], CHAR * envp[],
+void _start64(LONG argc,
+ CHAR * argv[],
unsigned long long *addr)
{
__asm__ __volatile__(
@@ -618,7 +619,7 @@ void _start(LONG argc, CHAR *argv[], CHAR *envp[])
} else {
printf("Starting ELF64 kernel\n\r");
ArcFlushAllCaches();
- _start64(nargc, nargv, envp, &kernel_entry64);
+ _start64(nargc, nargv, &kernel_entry64);
}
} else {
printf("Invalid kernel entry NULL\n\r");