From caef5b46fb58035a147bd86175e5bbc8253d1c97 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 7 Jun 2002 16:35:52 +0000 Subject: * diagnostic.c (diagnostic_build_prefix): Fix initialization. From-SVN: r54343 --- gcc/diagnostic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/diagnostic.c') diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 54f4911..22f116a 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. -- cgit v1.1