]> git.saurik.com Git - bison.git/commit
Pacify "gcc -Wunused" for the input function from Flex.
authorJoel E. Denny <jdenny@clemson.edu>
Sat, 1 Aug 2009 21:51:34 +0000 (17:51 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Sat, 1 Aug 2009 22:33:39 +0000 (18:33 -0400)
commit8d90395dd7aa01e6616cb46eddc1dbddafd8d9ee
tree0f39bc05622720b0646817f83bb6686a053beac1
parent5add20ab8947a2c314037a71142f14ab37c6cdc3
Pacify "gcc -Wunused" for the input function from Flex.

Reported by Alex Rozenman.  This warning shows up with gcc-4.3.0
and later.
* src/scan-code.l: Add "%option noinput", which I cannot find in
the Flex manual, but which Flex has supported since at least as
far back as 2.5.4.  However, if any of our developers still use
Flex 2.5.4, they'll need to stop configuring with
--enable-gcc-warnings because "%option noinput" didn't work
correctly until Flex 2.5.6.
* src/scan-gram.l: Likewise.
* src/scan-skel.l: Likewise.
(cherry picked from commit 42f8609bbd033edf6cca102ca080eade94ed08ef)
ChangeLog
src/scan-code.l
src/scan-gram.l
src/scan-skel.l