Commit caef5b46 by Gabriel Dos Reis Committed by Gabriel Dos Reis

* diagnostic.c (diagnostic_build_prefix): Fix initialization.

From-SVN: r54343
parent 68b15d4f
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> 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
* config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define. * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
......
...@@ -791,7 +791,7 @@ diagnostic_build_prefix (diagnostic) ...@@ -791,7 +791,7 @@ diagnostic_build_prefix (diagnostic)
diagnostic_info *diagnostic; diagnostic_info *diagnostic;
{ {
static const char *diagnostic_kind_text[] = { static const char *diagnostic_kind_text[] = {
#define DEFINE_DIAGNOSTIC_KIND(K, T) _(T), #define DEFINE_DIAGNOSTIC_KIND(K, T) (T),
#include "diagnostic.def" #include "diagnostic.def"
#undef DEFINE_DIAGNOSTIC_KIND #undef DEFINE_DIAGNOSTIC_KIND
"must-not-happen" "must-not-happen"
...@@ -803,9 +803,9 @@ diagnostic_build_prefix (diagnostic) ...@@ -803,9 +803,9 @@ diagnostic_build_prefix (diagnostic)
? build_message_string ("%s:%d: %s", ? build_message_string ("%s:%d: %s",
diagnostic->location.file, diagnostic->location.file,
diagnostic->location.line, diagnostic->location.line,
diagnostic_kind_text[diagnostic->kind]) _(diagnostic_kind_text[diagnostic->kind]))
: build_message_string ("%s: %s", progname, : build_message_string ("%s: %s", progname,
diagnostic_kind_text[diagnostic->kind]); _(diagnostic_kind_text[diagnostic->kind]));
} }
/* Report a diagnostic MESSAGE at the declaration DECL. /* Report a diagnostic MESSAGE at the declaration DECL.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment