Skip to content

Commit

Permalink
Clean up some more tcc warnings, minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Jun 7, 2022
1 parent d2e6d71 commit e36dbf4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions core-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ int32_t stress_get_opt_sched(const char *const str)
(void)fprintf(stderr, "\n");
}
_exit(EXIT_FAILURE);
return 0;
}

/*
Expand Down
1 change: 1 addition & 0 deletions core-setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down
2 changes: 2 additions & 0 deletions core-shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions stress-dup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions stress-reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static int reboot_clone_func(void *arg)

/* Should never get here */
exit(errno);
return 0;
}
#endif

Expand Down
1 change: 1 addition & 0 deletions stress-sigpipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ static int NORETURN pipe_child(void *ptr)
(void)ptr;

_exit(EXIT_SUCCESS);
return 0;
}
#endif

Expand Down

0 comments on commit e36dbf4

Please sign in to comment.