From: Joel E. Denny Date: Sat, 1 Aug 2009 21:51:34 +0000 (-0400) Subject: Pacify "gcc -Wunused" for the input function from Flex. X-Git-Tag: v2.7.90~835 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/8d90395dd7aa01e6616cb46eddc1dbddafd8d9ee?hp=8d90395dd7aa01e6616cb46eddc1dbddafd8d9ee 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) ---