Remove la_error
[deliverable/binutils-gdb.git] / gdb / go-exp.y
index 936d507c374957a497e350bb0b4ffb5fd9076684..47570d59111bcd7851aa807371e897860fc9849b 100644 (file)
@@ -81,7 +81,7 @@ int yyparse (void);
 
 static int yylex (void);
 
-void yyerror (const char *);
+static void yyerror (const char *);
 
 %}
 
@@ -1578,11 +1578,11 @@ go_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.024518 seconds and 4 git commands to generate.