Remove la_error
[deliverable/binutils-gdb.git] / gdb / p-exp.y
index d527b776d9f14ccfd943adc881f88b2eae29d333..9ffaccdbe3ff765c8e3a8da15eec5cd82ff84393 100644 (file)
@@ -72,7 +72,7 @@ int yyparse (void);
 
 static int yylex (void);
 
-void yyerror (const char *);
+static void yyerror (const char *);
 
 static char *uptok (const char *, int);
 %}
@@ -1722,11 +1722,11 @@ pascal_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.032142 seconds and 4 git commands to generate.