From e36dbf44b5b4bf29820e530c7419080b5b0eed25 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 7 Jun 2022 15:48:05 +0100 Subject: [PATCH] Clean up some more tcc warnings, minor changes Signed-off-by: Colin Ian King --- core-sched.c | 1 + core-setting.c | 1 + core-shim.c | 2 ++ stress-dup.c | 1 + stress-reboot.c | 1 + stress-sigpipe.c | 1 + 6 files changed, 7 insertions(+) diff --git a/core-sched.c b/core-sched.c index af8cb4813..26d21474a 100644 --- a/core-sched.c +++ b/core-sched.c @@ -348,6 +348,7 @@ int32_t stress_get_opt_sched(const char *const str) (void)fprintf(stderr, "\n"); } _exit(EXIT_FAILURE); + return 0; } /* diff --git a/core-setting.c b/core-setting.c index 24af00efb..c5f775cd9 100644 --- a/core-setting.c +++ b/core-setting.c @@ -176,6 +176,7 @@ static int stress_set_setting_generic( err: (void)fprintf(stderr, "cannot allocate setting '%s'\n", name); _exit(EXIT_NO_RESOURCE); + return 0; } /* diff --git a/core-shim.c b/core-shim.c index 34a4a0778..32b800afb 100644 --- a/core-shim.c +++ b/core-shim.c @@ -2017,6 +2017,8 @@ int shim_stime(const time_t *t) return stime(ut); #else + int stime(time_t *t); + return stime(t); #endif #elif defined(__NR_stime) diff --git a/stress-dup.c b/stress-dup.c index 887987ac6..0e3b09a11 100644 --- a/stress-dup.c +++ b/stress-dup.c @@ -80,6 +80,7 @@ static int stress_dup2_race_clone(void *arg) (void)close(fd); _exit(0); + return 0; } static void stress_dup2_sigalrm(int sig) diff --git a/stress-reboot.c b/stress-reboot.c index a4eaa43f7..21974c805 100644 --- a/stress-reboot.c +++ b/stress-reboot.c @@ -75,6 +75,7 @@ static int reboot_clone_func(void *arg) /* Should never get here */ exit(errno); + return 0; } #endif diff --git a/stress-sigpipe.c b/stress-sigpipe.c index 161a81a79..6078e0a8f 100644 --- a/stress-sigpipe.c +++ b/stress-sigpipe.c @@ -43,6 +43,7 @@ static int NORETURN pipe_child(void *ptr) (void)ptr; _exit(EXIT_SUCCESS); + return 0; } #endif