diff options
author | Gabriel Dos Reis <gdr@merlin.nerim.net> | 2002-06-07 16:35:52 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-06-07 16:35:52 +0000 |
commit | caef5b46fb58035a147bd86175e5bbc8253d1c97 (patch) | |
tree | 6e2a339a91083acd06487ed8215f2fe1b6a800ee /gcc | |
parent | 68b15d4f143898fde3ce1f10ba75f4266bbb2351 (diff) | |
download | gcc-caef5b46fb58035a147bd86175e5bbc8253d1c97.zip gcc-caef5b46fb58035a147bd86175e5bbc8253d1c97.tar.gz gcc-caef5b46fb58035a147bd86175e5bbc8253d1c97.tar.bz2 |
* diagnostic.c (diagnostic_build_prefix): Fix initialization.
From-SVN: r54343
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/diagnostic.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc4bb44..e6047ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net> + + * diagnostic.c (diagnostic_build_prefix): Fix initialization. + 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com> * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define. 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. |