]> 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:26:41 +0000 (18:26 -0400)
commit4521fcdf02e081b691c4a4485dd3441f8cda7c6b
tree7dd6a0b5afcea78a8d674f189fec362765ecc338
parentcbc6a70e9d380dda618b9aad28f66ff79ea5b413
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