summaryrefslogtreecommitdiff
path: root/t/yacc-dist-nobuild.sh
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2021-09-11 10:06:13 +0200
committerPaul Eggert <eggert@cs.ucla.edu>2021-09-11 07:55:39 -0700
commit2bb6340fa9838b7c1ce2e7673c64e5e9840d59f1 (patch)
treee7510713f7be218564d44dcfdf9e6e5a566c0f5d /t/yacc-dist-nobuild.sh
parent4ffbab9337430131b21ce784a10aed67dbd35373 (diff)
downloadautomake-2bb6340fa9838b7c1ce2e7673c64e5e9840d59f1.tar.gz
tests: let yacc's yyerror take its argument as a const string
Some of yacc error messages are const strings; it makes no sense for yyerror to take a 'char *', it should be a 'const char *' as POSIX now requires. Fixes all the failures reported by Kiyoshi Kanazawa. <https://lists.gnu.org/r/bug-bison/2021-09/msg00005.html> See bug#50469 <https://debbugs.gnu.org/50469>. * t/cond35.sh, t/silent-many-languages.sh, t/silent-yacc-headers.sh, * t/silent-yacc.sh, t/subpkg-yacc.sh, t/suffix10.tap, t/yacc-basic.sh, * t/yacc-clean.sh, t/yacc-d-basic.sh, t/yacc-d-vpath.sh, * t/yacc-deleted-headers.sh, t/yacc-depend.sh, t/yacc-depend2.sh, * t/yacc-dist-nobuild-subdir.sh, t/yacc-dist-nobuild.sh, t/yacc-dry.sh, * t/yacc-line.sh, t/yacc-misc.sh, t/yacc-mix-c-cxx.sh, t/yacc-nodist.sh, * t/yacc-pr204.sh, t/yacc-subdir.sh, t/yacc-vpath.sh, * t/yflags-cmdline-override.sh, t/yflags-force-override.sh (yyerror): From 'char *' to 'const char *'. Enforce consistency: prefer '{}' to '{ return; }'.
Diffstat (limited to 't/yacc-dist-nobuild.sh')
-rw-r--r--t/yacc-dist-nobuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/yacc-dist-nobuild.sh b/t/yacc-dist-nobuild.sh
index 5e1a2a70a..f4d3fbcb2 100644
--- a/t/yacc-dist-nobuild.sh
+++ b/t/yacc-dist-nobuild.sh
@@ -37,7 +37,7 @@ END
cat > parse.y << 'END'
%{
int yylex () { return 0; }
-void yyerror (char *s) {}
+void yyerror (const char *s) {}
%}
%%
foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};