From caef5b46fb58035a147bd86175e5bbc8253d1c97 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 7 Jun 2002 16:35:52 +0000 Subject: [PATCH] * diagnostic.c (diagnostic_build_prefix): Fix initialization. From-SVN: r54343 --- gcc/ChangeLog | 4 ++++ gcc/diagnostic.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc4bb441138..e6047ef6c8a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-06-07 Gabriel Dos Reis + + * diagnostic.c (diagnostic_build_prefix): Fix initialization. + 2002-06-07 Jason Thorpe * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define. diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 54f4911e98f..22f116a986f 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -791,7 +791,7 @@ diagnostic_build_prefix (diagnostic) diagnostic_info *diagnostic; { static const char *diagnostic_kind_text[] = { -#define DEFINE_DIAGNOSTIC_KIND(K, T) _(T), +#define DEFINE_DIAGNOSTIC_KIND(K, T) (T), #include "diagnostic.def" #undef DEFINE_DIAGNOSTIC_KIND "must-not-happen" @@ -803,9 +803,9 @@ diagnostic_build_prefix (diagnostic) ? build_message_string ("%s:%d: %s", diagnostic->location.file, diagnostic->location.line, - diagnostic_kind_text[diagnostic->kind]) + _(diagnostic_kind_text[diagnostic->kind])) : build_message_string ("%s: %s", progname, - diagnostic_kind_text[diagnostic->kind]); + _(diagnostic_kind_text[diagnostic->kind])); } /* Report a diagnostic MESSAGE at the declaration DECL. -- 2.30.2