svn commit: trunk/busybox/init
vodz at busybox.net
vodz at busybox.net
Wed Feb 1 14:47:54 UTC 2006
Author: vodz
Date: 2006-02-01 06:47:52 -0800 (Wed, 01 Feb 2006)
New Revision: 13787
Log:
removed anoinig `unused' warnings
Modified:
trunk/busybox/init/init.c
Changeset:
Modified: trunk/busybox/init/init.c
===================================================================
--- trunk/busybox/init/init.c 2006-02-01 12:56:19 UTC (rev 13786)
+++ trunk/busybox/init/init.c 2006-02-01 14:47:52 UTC (rev 13787)
@@ -185,7 +185,8 @@
/* 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 @@
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 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 @@
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 @@
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 @@
}
/* The SIGCONT handler */
-static void cont_handler(int sig)
+static void cont_handler(int sig ATTRIBUTE_UNUSED)
{
got_cont = 1;
}
@@ -980,7 +981,7 @@
}
#ifdef CONFIG_FEATURE_USE_INITTAB
-static void reload_signal(int sig)
+static void reload_signal(int sig ATTRIBUTE_UNUSED)
{
struct init_action *a, *tmp;
More information about the busybox-cvs
mailing list