From 1ed5decf2c4b52a69263b794c88d975bd02622b5 Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 5 Feb 2009 08:43:10 +1000 Subject: [PATCH] Fix warnings in FATAL_EXIT macro darcs-hash:20090204224310-ac50b-111db6c8f5b74dad0a309441063d3d7e9bf8f55d.gz --- common.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common.h b/common.h index 7831c7ec0..fc3b6373e 100644 --- a/common.h +++ b/common.h @@ -109,13 +109,13 @@ extern wchar_t *program_name; /** Pause for input, then exit the program. If supported, print a backtrace first. */ -#define FATAL_EXIT() \ - { \ - char c; \ - show_stackframe(); \ - read( 0, &c, 1 ); \ - exit( 1 ); \ - } \ +#define FATAL_EXIT() \ + { \ + int exit_read_count;char exit_read_buff; \ + show_stackframe(); \ + exit_read_count=read( 0, &exit_read_buff, 1 ); \ + exit( 1 ); \ + } \ /**