warnings: pacify ‘gcc -Wchar-subscripts’ in yacc.c
commit139d0655947c87f90af08718618feaaca0e558d7
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Dec 2019 21:34:57 +0000 (18 13:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Dec 2019 21:35:28 +0000 (18 13:35 -0800)
tree5229154cc4e2b0959a20fd3f9648e369c7e14950
parent0d73c39bb788e348c72e7cbf5ae308d01cef3a5e
warnings: pacify ‘gcc -Wchar-subscripts’ in yacc.c

Problem reported by Andy Fiddaman in:
https://lists.gnu.org/r/bug-bison/2019-12/msg00021.html
* data/skeletons/yacc.c (yy_reduce_print, yy_lac, yysyntax_error)
(yyreturn): If I might be a char, write a[+I] instead of a[I],
so that ‘gcc -Wchar-subscripts’ does not complain.
data/skeletons/yacc.c