aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2025-08-03 16:14:19 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2025-08-03 16:14:19 +0200
commitdba57344b5293a3ebdce4d090fe42af192f0dc3d (patch)
treed7a985330ea1e8763f8d69ce999c325cc97369cc /shell
parent4539262b6a0a9eb029c113b27661734e773d0988 (diff)
downloadbusybox-w32-dba57344b5293a3ebdce4d090fe42af192f0dc3d.tar.gz
busybox-w32-dba57344b5293a3ebdce4d090fe42af192f0dc3d.tar.bz2
busybox-w32-dba57344b5293a3ebdce4d090fe42af192f0dc3d.zip
hush: make NORETURN declarations lees verbose, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c28
1 files changed, 6 insertions, 22 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 3967f65e6..25971f927 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -7447,10 +7447,7 @@ static void reset_traps_to_defaults(void)
7447 7447
7448#else /* !BB_MMU */ 7448#else /* !BB_MMU */
7449 7449
7450static void re_execute_shell(char ***to_free, const char *s, 7450static NORETURN void re_execute_shell(char ***to_free, const char *s,
7451 char *g_argv0, char **g_argv,
7452 char **builtin_argv) NORETURN;
7453static void re_execute_shell(char ***to_free, const char *s,
7454 char *g_argv0, char **g_argv, 7451 char *g_argv0, char **g_argv,
7455 char **builtin_argv) 7452 char **builtin_argv)
7456{ 7453{
@@ -8468,10 +8465,7 @@ static void unset_func(const char *name)
8468#define exec_function(to_free, funcp, argv) \ 8465#define exec_function(to_free, funcp, argv) \
8469 exec_function(funcp, argv) 8466 exec_function(funcp, argv)
8470# endif 8467# endif
8471static void exec_function(char ***to_free, 8468static NORETURN void exec_function(char ***to_free,
8472 const struct function *funcp,
8473 char **argv) NORETURN;
8474static void exec_function(char ***to_free,
8475 const struct function *funcp, 8469 const struct function *funcp,
8476 char **argv) 8470 char **argv)
8477{ 8471{
@@ -8567,10 +8561,7 @@ static int run_function(const struct function *funcp, char **argv)
8567#define exec_builtin(to_free, x, argv) \ 8561#define exec_builtin(to_free, x, argv) \
8568 exec_builtin(to_free, argv) 8562 exec_builtin(to_free, argv)
8569#endif 8563#endif
8570static void exec_builtin(char ***to_free, 8564static NORETURN void exec_builtin(char ***to_free,
8571 const struct built_in_command *x,
8572 char **argv) NORETURN;
8573static void exec_builtin(char ***to_free,
8574 const struct built_in_command *x, 8565 const struct built_in_command *x,
8575 char **argv) 8566 char **argv)
8576{ 8567{
@@ -8593,8 +8584,7 @@ static void exec_builtin(char ***to_free,
8593#endif 8584#endif
8594} 8585}
8595 8586
8596static void execvp_or_die(char **argv) NORETURN; 8587static NORETURN void execvp_or_die(char **argv)
8597static void execvp_or_die(char **argv)
8598{ 8588{
8599 int e; 8589 int e;
8600 debug_printf_exec("execing '%s'\n", argv[0]); 8590 debug_printf_exec("execing '%s'\n", argv[0]);
@@ -8715,10 +8705,7 @@ static void if_command_vV_print_and_exit(char opt_vV, char *cmd, const char *exp
8715 * The at_exit handlers apparently confuse the calling process, 8705 * The at_exit handlers apparently confuse the calling process,
8716 * in particular stdin handling. Not sure why? -- because of vfork! (vda) 8706 * in particular stdin handling. Not sure why? -- because of vfork! (vda)
8717 */ 8707 */
8718static void pseudo_exec_argv(nommu_save_t *nommu_save, 8708static NORETURN NOINLINE void pseudo_exec_argv(nommu_save_t *nommu_save,
8719 char **argv, int assignment_cnt,
8720 char **argv_expanded) NORETURN;
8721static NOINLINE void pseudo_exec_argv(nommu_save_t *nommu_save,
8722 char **argv, int assignment_cnt, 8709 char **argv, int assignment_cnt,
8723 char **argv_expanded) 8710 char **argv_expanded)
8724{ 8711{
@@ -8871,10 +8858,7 @@ static NOINLINE void pseudo_exec_argv(nommu_save_t *nommu_save,
8871 8858
8872/* Called after [v]fork() in run_pipe 8859/* Called after [v]fork() in run_pipe
8873 */ 8860 */
8874static void pseudo_exec(nommu_save_t *nommu_save, 8861static NORETURN void pseudo_exec(nommu_save_t *nommu_save,
8875 struct command *command,
8876 char **argv_expanded) NORETURN;
8877static void pseudo_exec(nommu_save_t *nommu_save,
8878 struct command *command, 8862 struct command *command,
8879 char **argv_expanded) 8863 char **argv_expanded)
8880{ 8864{