@@ -29,7 +29,7 @@
#include "target.h"
int verbose, optimize, optimize_size, preprocessing;
-int die_if_error = 0;
+int error_happened = 0;
#ifndef __GNUC__
# define __GNUC__ 2
@@ -131,7 +131,7 @@ void warning(struct position pos, const char * fmt, ...)
static void do_error(struct position pos, const char * fmt, va_list args)
{
static int errors = 0;
- die_if_error = 1;
+ error_happened = 1;
show_info = 1;
/* Shut up warnings after an error */
max_warnings = 0;
@@ -25,7 +25,7 @@
#endif
extern int verbose, optimize, optimize_size, preprocessing;
-extern int die_if_error;
+extern int error_happened;
extern int repeat_phase, merge_phi_sources;
extern int gcc_major, gcc_minor, gcc_patchlevel;
The variable in question is set when an error message is output, and doesn't control termination at all, so I think the new name matches the semantics better. Cc: Mitesh Shah <mshah@teja.com> Cc: Christopher Li <sparse@chrisli.org> Cc: Jeff Garzik <jgarzik@redhat.com> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> --- lib.c | 4 ++-- lib.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)