mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
Silence unused return value warning in FATAL_EXIT
This commit is contained in:
parent
58ebdd4a7e
commit
fb89c762fc
1 changed files with 4 additions and 3 deletions
7
common.h
7
common.h
|
@ -180,10 +180,11 @@ extern const wchar_t *program_name;
|
|||
*/
|
||||
#define FATAL_EXIT() \
|
||||
{ \
|
||||
char exit_read_buff; \
|
||||
char exit_read_buff; \
|
||||
show_stackframe(); \
|
||||
read( 0, &exit_read_buff, 1 ); \
|
||||
exit_without_destructors( 1 ); \
|
||||
int ignore __attribute__((unused)); \
|
||||
ignore = read( 0, &exit_read_buff, 1 ); \
|
||||
exit_without_destructors( 1 ); \
|
||||
} \
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue