mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00:00
fish_test_helper: Fix warnings about intentionally unused results
Warnings were appearing under GCC 13.2 (void) alone is insufficient under modern compilers, workaround with logical negation taken from GCC bug tracker.
This commit is contained in:
parent
ef6577db25
commit
73908f1218
1 changed files with 2 additions and 2 deletions
|
@ -162,11 +162,11 @@ static void print_ignored_signals() {
|
|||
}
|
||||
|
||||
static void sigtstp_handler(int x) {
|
||||
write(STDOUT_FILENO, "SIGTSTP\n", strlen("SIGTSTP\n"));
|
||||
(void)!write(STDOUT_FILENO, "SIGTSTP\n", strlen("SIGTSTP\n"));
|
||||
kill(getpid(), SIGSTOP);
|
||||
}
|
||||
static void sigcont_handler(int x) {
|
||||
write(STDOUT_FILENO, "SIGCONT\n", strlen("SIGCONT\n"));
|
||||
(void)!write(STDOUT_FILENO, "SIGCONT\n", strlen("SIGCONT\n"));
|
||||
}
|
||||
static void print_stop_cont() {
|
||||
signal(SIGTSTP, &sigtstp_handler);
|
||||
|
|
Loading…
Reference in a new issue