aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2006-02-01 14:47:52 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2006-02-01 14:47:52 +0000
commit1f04c9d29c8a79cc71a7dd01e18e14c0fe8a8726 (patch)
tree63fc859716e1f0edc82270ce5f110659fd4d2cca
parent73ffd762ca58831584641b9760eb3b9b13bae195 (diff)
downloadbusybox-1f04c9d29c8a79cc71a7dd01e18e14c0fe8a8726.tar.gz
removed anoinig `unused' warnings
-rw-r--r--init/init.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/init/init.c b/init/init.c
index 0db355413..c4d67a54b 100644
--- a/init/init.c
+++ b/init/init.c
@@ -185,7 +185,8 @@ static void loop_forever(void)
/* Print a message to the specified device.
* Device may be bitwise-or'd from LOG | CONSOLE */
#ifndef DEBUG_INIT
-static inline void messageD(int device, const char *fmt, ...)
+static inline void messageD(int ATTRIBUTE_UNUSED device,
+ const char ATTRIBUTE_UNUSED *fmt, ...)
{
}
#else
@@ -689,7 +690,7 @@ static void shutdown_system(void)
sync();
}
-static void exec_signal(int sig)
+static void exec_signal(int sig ATTRIBUTE_UNUSED)
{
struct init_action *a, *tmp;
sigset_t unblock_signals;
@@ -748,7 +749,7 @@ static void exec_signal(int sig)
}
}
-static void halt_signal(int sig)
+static void halt_signal(int sig ATTRIBUTE_UNUSED)
{
shutdown_system();
message(CONSOLE | LOG, "The system is halted.");
@@ -765,7 +766,7 @@ static void halt_signal(int sig)
loop_forever();
}
-static void reboot_signal(int sig)
+static void reboot_signal(int sig ATTRIBUTE_UNUSED)
{
shutdown_system();
message(CONSOLE | LOG, "Please stand by while rebooting the system.");
@@ -779,13 +780,13 @@ static void reboot_signal(int sig)
loop_forever();
}
-static void ctrlaltdel_signal(int sig)
+static void ctrlaltdel_signal(int sig ATTRIBUTE_UNUSED)
{
run_actions(CTRLALTDEL);
}
/* The SIGSTOP & SIGTSTP handler */
-static void stop_handler(int sig)
+static void stop_handler(int sig ATTRIBUTE_UNUSED)
{
int saved_errno = errno;
@@ -797,7 +798,7 @@ static void stop_handler(int sig)
}
/* The SIGCONT handler */
-static void cont_handler(int sig)
+static void cont_handler(int sig ATTRIBUTE_UNUSED)
{
got_cont = 1;
}
@@ -980,7 +981,7 @@ static void parse_inittab(void)
}
#ifdef CONFIG_FEATURE_USE_INITTAB
-static void reload_signal(int sig)
+static void reload_signal(int sig ATTRIBUTE_UNUSED)
{
struct init_action *a, *tmp;