]> git.saurik.com Git - bison.git/commitdiff
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)
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

index 709c517cb722e59cc5d6cc34cc8c54635b76de23..bcf5d96c241e5c4a2c575b20641ee77d766c0d30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-08-01  Joel E. Denny  <jdenny@clemson.edu>
+
+       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.
+
 2009-07-31  Alex Rozenman  <rozenman@gmail.com>
 
        Fix --enable-gcc-warnings problems.
index bec30b6cc29af8ee5478141b211a0fd29e99c251..4d3120e398d742b0d866a430fa70671677b5f8b6 100644 (file)
@@ -17,7 +17,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-%option debug nodefault nounput noyywrap never-interactive
+%option debug nodefault noinput nounput noyywrap never-interactive
 %option prefix="code_" outfile="lex.yy.c"
 
 %{
index a6bd5e2f1967a7857e2e832ce58fd1a328affe89..de93b95ca153fc622887753970834d7dea1c3d90 100644 (file)
@@ -18,7 +18,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-%option debug nodefault nounput noyywrap never-interactive
+%option debug nodefault noinput nounput noyywrap never-interactive
 %option prefix="gram_" outfile="lex.yy.c"
 
 %{
index b315951cacb85e936dcd40ab3e1801b8e880c9a9..58cee42641faa91a01bc0dd78638c65120e99385 100644 (file)
@@ -18,7 +18,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-%option nodefault noyywrap nounput never-interactive debug
+%option nodefault noyywrap noinput nounput never-interactive debug
 %option prefix="skel_" outfile="lex.yy.c"
 
 %{