From fb89c762fc909a4b5a5c51f51990185b30ec6857 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 27 Apr 2014 17:27:20 -0700 Subject: [PATCH] Silence unused return value warning in FATAL_EXIT --- common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common.h b/common.h index 3c409e8f6..057db144d 100644 --- a/common.h +++ b/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 ); \ } \