mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user