From 67f189669771643bbbea390f9e1d80265eea660d Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Thu, 28 Feb 2013 13:31:30 +0100 Subject: [PATCH] b43-asm: const-ify yyerror() argument This fixes a compiler warning. Signed-off-by: Michael Buesch --- assembler/parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assembler/parser.y b/assembler/parser.y index 317af05..358abbb 100644 --- a/assembler/parser.y +++ b/assembler/parser.y @@ -23,7 +23,7 @@ #include extern char *yytext; -extern void yyerror(char *); +extern void yyerror(const char *); extern int yyparse(void); extern int yylex(void); @@ -1471,7 +1471,7 @@ identifier : IDENT { int section = SECTION_TEXT; /* default to .text section */ struct initvals_sect *cur_initvals_sect; -void yyerror(char *str) +void yyerror(const char *str) { unsigned int i; -- 2.31.1