]> 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:03:45 +0000 (18:03 -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.

ChangeLog
src/scan-code.l
src/scan-gram.l
src/scan-skel.l

index bf0f1744e72035c9168263d4f903c325a8535fdc..3c0ba080fae238d698a783e95c2d0d685277f87d 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-06-29  Akim Demaille  <demaille@gostai.com>
 
        build: avoid concurrent extraction of calc++.
index 13a78c27fb00c8a00dff6d11f5e315d8016b4fce..d357f0946dea710a41144b6c26aabff05b4013d0 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 697f52f054a73058ae287624c6fdf6ff9f757d46..13308bbeb9a7d1475c3bad0a332e669f2fc5242a 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 6ef53511a674507ec2d42ca179f887e7e3d43bbb..6841b4a4eccaf817e78ebfc2e52cf7a8a1d20f1d 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"
 
 %{