diff options
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 |
commit | 1f04c9d29c8a79cc71a7dd01e18e14c0fe8a8726 (patch) | |
tree | 63fc859716e1f0edc82270ce5f110659fd4d2cca | |
parent | 73ffd762ca58831584641b9760eb3b9b13bae195 (diff) | |
download | busybox-w32-1f04c9d29c8a79cc71a7dd01e18e14c0fe8a8726.tar.gz busybox-w32-1f04c9d29c8a79cc71a7dd01e18e14c0fe8a8726.tar.bz2 busybox-w32-1f04c9d29c8a79cc71a7dd01e18e14c0fe8a8726.zip |
removed anoinig `unused' warnings
-rw-r--r-- | init/init.c | 17 |
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) | |||
185 | /* Print a message to the specified device. | 185 | /* Print a message to the specified device. |
186 | * Device may be bitwise-or'd from LOG | CONSOLE */ | 186 | * Device may be bitwise-or'd from LOG | CONSOLE */ |
187 | #ifndef DEBUG_INIT | 187 | #ifndef DEBUG_INIT |
188 | static inline void messageD(int device, const char *fmt, ...) | 188 | static inline void messageD(int ATTRIBUTE_UNUSED device, |
189 | const char ATTRIBUTE_UNUSED *fmt, ...) | ||
189 | { | 190 | { |
190 | } | 191 | } |
191 | #else | 192 | #else |
@@ -689,7 +690,7 @@ static void shutdown_system(void) | |||
689 | sync(); | 690 | sync(); |
690 | } | 691 | } |
691 | 692 | ||
692 | static void exec_signal(int sig) | 693 | static void exec_signal(int sig ATTRIBUTE_UNUSED) |
693 | { | 694 | { |
694 | struct init_action *a, *tmp; | 695 | struct init_action *a, *tmp; |
695 | sigset_t unblock_signals; | 696 | sigset_t unblock_signals; |
@@ -748,7 +749,7 @@ static void exec_signal(int sig) | |||
748 | } | 749 | } |
749 | } | 750 | } |
750 | 751 | ||
751 | static void halt_signal(int sig) | 752 | static void halt_signal(int sig ATTRIBUTE_UNUSED) |
752 | { | 753 | { |
753 | shutdown_system(); | 754 | shutdown_system(); |
754 | message(CONSOLE | LOG, "The system is halted."); | 755 | message(CONSOLE | LOG, "The system is halted."); |
@@ -765,7 +766,7 @@ static void halt_signal(int sig) | |||
765 | loop_forever(); | 766 | loop_forever(); |
766 | } | 767 | } |
767 | 768 | ||
768 | static void reboot_signal(int sig) | 769 | static void reboot_signal(int sig ATTRIBUTE_UNUSED) |
769 | { | 770 | { |
770 | shutdown_system(); | 771 | shutdown_system(); |
771 | message(CONSOLE | LOG, "Please stand by while rebooting the system."); | 772 | message(CONSOLE | LOG, "Please stand by while rebooting the system."); |
@@ -779,13 +780,13 @@ static void reboot_signal(int sig) | |||
779 | loop_forever(); | 780 | loop_forever(); |
780 | } | 781 | } |
781 | 782 | ||
782 | static void ctrlaltdel_signal(int sig) | 783 | static void ctrlaltdel_signal(int sig ATTRIBUTE_UNUSED) |
783 | { | 784 | { |
784 | run_actions(CTRLALTDEL); | 785 | run_actions(CTRLALTDEL); |
785 | } | 786 | } |
786 | 787 | ||
787 | /* The SIGSTOP & SIGTSTP handler */ | 788 | /* The SIGSTOP & SIGTSTP handler */ |
788 | static void stop_handler(int sig) | 789 | static void stop_handler(int sig ATTRIBUTE_UNUSED) |
789 | { | 790 | { |
790 | int saved_errno = errno; | 791 | int saved_errno = errno; |
791 | 792 | ||
@@ -797,7 +798,7 @@ static void stop_handler(int sig) | |||
797 | } | 798 | } |
798 | 799 | ||
799 | /* The SIGCONT handler */ | 800 | /* The SIGCONT handler */ |
800 | static void cont_handler(int sig) | 801 | static void cont_handler(int sig ATTRIBUTE_UNUSED) |
801 | { | 802 | { |
802 | got_cont = 1; | 803 | got_cont = 1; |
803 | } | 804 | } |
@@ -980,7 +981,7 @@ static void parse_inittab(void) | |||
980 | } | 981 | } |
981 | 982 | ||
982 | #ifdef CONFIG_FEATURE_USE_INITTAB | 983 | #ifdef CONFIG_FEATURE_USE_INITTAB |
983 | static void reload_signal(int sig) | 984 | static void reload_signal(int sig ATTRIBUTE_UNUSED) |
984 | { | 985 | { |
985 | struct init_action *a, *tmp; | 986 | struct init_action *a, *tmp; |
986 | 987 | ||