diff options
| -rw-r--r-- | src/command/exit.cc | 2 | ||||
| -rw-r--r-- | src/command/jobs.cc | 2 | ||||
| -rw-r--r-- | src/command/quit.cc | 2 | ||||
| -rw-r--r-- | src/handler.cc | 10 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/command/exit.cc b/src/command/exit.cc index e00a0f2..c72afe0 100644 --- a/src/command/exit.cc +++ b/src/command/exit.cc @@ -5,7 +5,7 @@ namespace ov4::command void exit(char **argv) { - std::exit(0); + quit(argv); } } diff --git a/src/command/jobs.cc b/src/command/jobs.cc index 18acc0e..244d625 100644 --- a/src/command/jobs.cc +++ b/src/command/jobs.cc @@ -7,7 +7,7 @@ namespace ov4::command using namespace ov4; -void jobs(char **argv) +void jobs([[maybe_unused]] char **argv) { listjobs(); } diff --git a/src/command/quit.cc b/src/command/quit.cc index 0ac918b..676f81a 100644 --- a/src/command/quit.cc +++ b/src/command/quit.cc @@ -5,7 +5,7 @@ namespace ov4::command using namespace ov4; -void quit(char **argv) +void quit([[maybe_unused]] char **argv) { std::exit(0); } diff --git a/src/handler.cc b/src/handler.cc index 60b41fa..64d63e7 100644 --- a/src/handler.cc +++ b/src/handler.cc @@ -37,7 +37,7 @@ void signal_init() * Signal - wrapper for the sigaction function */ -handler_t *Signal(int signum, handler_t *handler) +handler_t *Signal([[maybe_unused]] int signum, handler_t *handler) { struct sigaction action, old_action; @@ -57,7 +57,7 @@ handler_t *Signal(int signum, handler_t *handler) * available zombie children, but doesn't wait for any other * currently running children to terminate. */ -void sigchld_handler(int sig) +void sigchld_handler([[maybe_unused]] int sig) { int errno_backup = errno; @@ -122,7 +122,7 @@ void sigchld_handler(int sig) * user types ctrl-c at the keyboard. Catch it and send it along * to the foreground job. */ -void sigint_handler(int sig) +void sigint_handler([[maybe_unused]] int sig) { int errno_backup = errno; @@ -150,7 +150,7 @@ void sigint_handler(int sig) * the user types ctrl-z at the keyboard. Catch it and suspend the * foreground job by sending it a SIGTSTP. */ -void sigtstp_handler(int sig) +void sigtstp_handler([[maybe_unused]] int sig) { int errno_backup = errno; @@ -181,7 +181,7 @@ int block_handler(sigset_t *prev) return sigprocmask(SIG_BLOCK, &block_job, prev); } -void sigquit_handler(int sig) +void sigquit_handler([[maybe_unused]] int sig) { printf("Terminating after receipt of SIGQUIT signal\n"); exit(1); |
