Remove la_error
[deliverable/binutils-gdb.git] / gdb / d-exp.y
index 508927bb00f0858484e274178769fc2bbcd9a398..74e4b637d0dde17d9960341dcb6dfa39d6ac1cb9 100644 (file)
@@ -69,7 +69,7 @@ int yyparse (void);
 
 static int yylex (void);
 
-void yyerror (const char *);
+static void yyerror (const char *);
 
 static int type_aggregate_p (struct type *);
 
@@ -1627,12 +1627,12 @@ d_parse (struct parser_state *par_state)
   return yyparse ();
 }
 
-void
+static void
 yyerror (const char *msg)
 {
   if (prev_lexptr)
     lexptr = prev_lexptr;
 
-  error (_("A %s in expression, near `%s'."), (msg ? msg : "error"), lexptr);
+  error (_("A %s in expression, near `%s'."), msg, lexptr);
 }
 
This page took 0.024668 seconds and 4 git commands to generate.