Modernise yyerror
[binutils-gdb.git] / gas / itbl-parse.y
index e9dac5cd199ea758b7bd30f8011e768f74afaec6..7f56c73cfc45851ce0bd2c51f45dc63095ffa747 100644 (file)
@@ -1,5 +1,5 @@
 /* itbl-parse.y
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
+   Copyright (C) 1997-2021 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -274,7 +274,7 @@ FIXME! hex is ambiguous with any digit
 
 static int sbit, ebit;
 static struct itbl_entry *insn=0;
-static int yyerror (const char *);
+static void yyerror (const char *);
 
 %}
 
@@ -449,10 +449,8 @@ value:
        ;
 %%
 
-static int
-yyerror (msg)
-     const char *msg;
+static void
+yyerror (const char *msg)
 {
   printf ("line %d: %s\n", insntbl_line, msg);
-  return 0;
 }