* diagnostic.c (diagnostic_build_prefix): Fix initialization.
authorGabriel Dos Reis <gdr@merlin.nerim.net>
Fri, 7 Jun 2002 16:35:52 +0000 (16:35 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 7 Jun 2002 16:35:52 +0000 (16:35 +0000)
From-SVN: r54343

gcc/ChangeLog
gcc/diagnostic.c

index bc4bb4411384d298a367392bbff77a03ca234515..e6047ef6c8a5396f84250a5bbefabb6b625c25bf 100644 (file)
@@ -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.
index 54f4911e98fcfc1d87d109b777de6165d4fbcb7c..22f116a986fdf355eed6b139fd4eb76d16f5f4d5 100644 (file)
@@ -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.