]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: let yacc's yyerror take its argument as a const string
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 11 Sep 2021 08:06:13 +0000 (10:06 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Sep 2021 14:55:39 +0000 (07:55 -0700)
commit2bb6340fa9838b7c1ce2e7673c64e5e9840d59f1
treee7510713f7be218564d44dcfdf9e6e5a566c0f5d
parent4ffbab9337430131b21ce784a10aed67dbd35373
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; }'.
28 files changed:
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-bison-skeleton.sh
t/yacc-clean-cxx.sh
t/yacc-clean.sh
t/yacc-cxx.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