diff options
author | Mariusz PluciĆski <mplucinski@mplucinski.com> | 2014-07-25 18:03:39 +0200 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2014-11-26 13:26:49 -0500 |
commit | 874dd74ceba67c19f0df3bb46b1c216a23f52d2d (patch) | |
tree | 6996e168c3046bf7ea584a9a2a67e37b27a556ee | |
parent | 17c292bf03bccf4e808835f96f1260e6dd611b43 (diff) |
Fix `unused function` warnings in tests
43 files changed, 43 insertions, 44 deletions
diff --git a/tests/alloc_extra.l b/tests/alloc_extra.l index 14e1837..2c582a8 100644 --- a/tests/alloc_extra.l +++ b/tests/alloc_extra.l @@ -49,7 +49,7 @@ void *yyalloc ( size_t size, yyscan_t scanner ); %} %option 8bit prefix="test" -%option nounput nomain noyywrap nodefault +%option nounput nomain noyywrap nodefault noinput %option warn %option extra-type="struct Check *" %option reentrant diff --git a/tests/array_nr.l b/tests/array_nr.l index d961ee9..52e0753 100644 --- a/tests/array_nr.l +++ b/tests/array_nr.l @@ -31,7 +31,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn array diff --git a/tests/array_r.l b/tests/array_r.l index 0285240..556d26f 100644 --- a/tests/array_r.l +++ b/tests/array_r.l @@ -31,7 +31,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn array reentrant diff --git a/tests/basic_nr.l b/tests/basic_nr.l index 7109b2b..3c29757 100644 --- a/tests/basic_nr.l +++ b/tests/basic_nr.l @@ -35,7 +35,7 @@ %} %option prefix="test" -%option nounput noyywrap noyylineno warn nodefault +%option nounput noyywrap noyylineno warn nodefault noinput IDENT [[:alnum:]_-] WS [[:blank:]] diff --git a/tests/basic_r.l b/tests/basic_r.l index 425af7c..e9ff59f 100644 --- a/tests/basic_r.l +++ b/tests/basic_r.l @@ -34,7 +34,7 @@ %} %option prefix="test" -%option nounput noyywrap noyylineno warn nodefault +%option nounput noyywrap noyylineno warn nodefault noinput %option reentrant IDENT [[:alnum:]_-] diff --git a/tests/bison_nr_scanner.l b/tests/bison_nr_scanner.l index 154d12b..4378e5a 100644 --- a/tests/bison_nr_scanner.l +++ b/tests/bison_nr_scanner.l @@ -33,8 +33,8 @@ static char* STRDUP(char* s1); %option 8bit prefix="test" %option bison-locations yylineno -%option nomain nounput noyy_top_state noyywrap nodefault warn %option prefix="test" header="bison_nr_scanner.h" yylineno +%option nomain nounput noyy_top_state noyywrap nodefault noinput warn %% diff --git a/tests/bison_yylloc_scanner.l b/tests/bison_yylloc_scanner.l index b4bb9f7..3708237 100644 --- a/tests/bison_yylloc_scanner.l +++ b/tests/bison_yylloc_scanner.l @@ -33,8 +33,8 @@ static char* STRDUP(char* s1); %option 8bit prefix="test" %option reentrant bison-bridge bison-locations yylineno -%option nomain nounput noyy_top_state noyywrap nodefault warn %option header="bison_yylloc_scanner.h" +%option nomain nounput noyy_top_state noyywrap nodefault noinput warn %% diff --git a/tests/bison_yylval_scanner.l b/tests/bison_yylval_scanner.l index 4608bf3..db99fa0 100644 --- a/tests/bison_yylval_scanner.l +++ b/tests/bison_yylval_scanner.l @@ -35,8 +35,8 @@ enum yesno_t { no=0, yes=1 }; %option 8bit prefix="test" %option reentrant bison-bridge -%option noyywrap nomain nounput noyy_top_state noyywrap nodefault warn %option header="bison_yylval_scanner.h" +%option noyywrap nomain nounput noyy_top_state noyywrap nodefault noinput warn %option stack diff --git a/tests/ccl.l b/tests/ccl.l index fa858f9..c244892 100644 --- a/tests/ccl.l +++ b/tests/ccl.l @@ -33,7 +33,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/cxx_basic.ll b/tests/cxx_basic.ll index ddeb2a7..6ffa39c 100644 --- a/tests/cxx_basic.ll +++ b/tests/cxx_basic.ll @@ -28,9 +28,8 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap %option warn c++ - +%option nounput nomain noinput noyywrap %% diff --git a/tests/debug_nr.l b/tests/debug_nr.l index 231a181..0596dce 100644 --- a/tests/debug_nr.l +++ b/tests/debug_nr.l @@ -30,7 +30,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn debug %% diff --git a/tests/debug_r.l b/tests/debug_r.l index c6982bf..0d40e0e 100644 --- a/tests/debug_r.l +++ b/tests/debug_r.l @@ -30,7 +30,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn debug reentrant %% diff --git a/tests/extended.l b/tests/extended.l index ec3d504..a113fac 100644 --- a/tests/extended.l +++ b/tests/extended.l @@ -31,7 +31,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/header_nr_scanner.l b/tests/header_nr_scanner.l index 31332fc..b429a6c 100644 --- a/tests/header_nr_scanner.l +++ b/tests/header_nr_scanner.l @@ -30,7 +30,7 @@ %} %option 8bit prefix="test" header="header_nr_scanner.h" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/header_r_scanner.l b/tests/header_r_scanner.l index 3bf53c7..bfad8ba 100644 --- a/tests/header_r_scanner.l +++ b/tests/header_r_scanner.l @@ -34,7 +34,7 @@ %option reentrant %option 8bit prefix="test" header="header_r_scanner.h" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/include_by_buffer.direct.l b/tests/include_by_buffer.direct.l index 4dc0091..f3b2d2a 100644 --- a/tests/include_by_buffer.direct.l +++ b/tests/include_by_buffer.direct.l @@ -32,7 +32,7 @@ f * are met: %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn %x GET_FILENAME diff --git a/tests/include_by_push.direct.l b/tests/include_by_push.direct.l index 9e978ce..6b7a5fa 100644 --- a/tests/include_by_push.direct.l +++ b/tests/include_by_push.direct.l @@ -32,7 +32,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn %x GET_FILENAME diff --git a/tests/include_by_reentrant.direct.l b/tests/include_by_reentrant.direct.l index f993133..8cd4900 100644 --- a/tests/include_by_reentrant.direct.l +++ b/tests/include_by_reentrant.direct.l @@ -32,7 +32,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option reentrant %option warn diff --git a/tests/lineno_nr.l b/tests/lineno_nr.l index 3072de4..8e35fc1 100644 --- a/tests/lineno_nr.l +++ b/tests/lineno_nr.l @@ -35,7 +35,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap yylineno +%option nounput nomain noyywrap noinput yylineno %option warn WORD [[:alpha:]]+ diff --git a/tests/lineno_r.l b/tests/lineno_r.l index 4433575..e6207c6 100644 --- a/tests/lineno_r.l +++ b/tests/lineno_r.l @@ -35,7 +35,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap yylineno reentrant +%option nounput nomain noyywrap noinput yylineno reentrant %option warn WORD [[:alpha:]]+ diff --git a/tests/lineno_trailing.l b/tests/lineno_trailing.l index 9ac2c84..3a8a683 100644 --- a/tests/lineno_trailing.l +++ b/tests/lineno_trailing.l @@ -35,7 +35,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap yylineno +%option nounput nomain noyywrap noinput yylineno %option warn WORD [[:alpha:]]+ diff --git a/tests/mem_nr.l b/tests/mem_nr.l index 9935763..c7a6ce0 100644 --- a/tests/mem_nr.l +++ b/tests/mem_nr.l @@ -40,7 +40,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput noyy_top_state %option warn stack nodefault %option noyyalloc noyyrealloc noyyfree diff --git a/tests/mem_r.l b/tests/mem_r.l index ec150c0..cbfe08c 100644 --- a/tests/mem_r.l +++ b/tests/mem_r.l @@ -40,7 +40,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput noyy_top_state %option warn stack nodefault reentrant %option noyyalloc noyyrealloc noyyfree diff --git a/tests/multiple_scanners_nr_1.l b/tests/multiple_scanners_nr_1.l index 5e848c2..fcba194 100644 --- a/tests/multiple_scanners_nr_1.l +++ b/tests/multiple_scanners_nr_1.l @@ -31,7 +31,7 @@ %option header="multiple_scanners_nr_1.h" %option 8bit prefix="S1_" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn stack noyy_top_state %x ON diff --git a/tests/multiple_scanners_nr_2.l b/tests/multiple_scanners_nr_2.l index 5a9ac99..fff2e88 100644 --- a/tests/multiple_scanners_nr_2.l +++ b/tests/multiple_scanners_nr_2.l @@ -31,7 +31,7 @@ %option header="multiple_scanners_nr_2.h" %option 8bit prefix="S2_" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn stack noyy_top_state %x OFF diff --git a/tests/multiple_scanners_r_1.l b/tests/multiple_scanners_r_1.l index 1725e3e..75ef179 100644 --- a/tests/multiple_scanners_r_1.l +++ b/tests/multiple_scanners_r_1.l @@ -31,7 +31,7 @@ %option header="multiple_scanners_r_1.h" %option 8bit prefix="S1_" -%option nounput nomain noyywrap noyy_top_state +%option nounput nomain noyywrap noinput noyy_top_state %option warn stack reentrant %x ON diff --git a/tests/multiple_scanners_r_2.l b/tests/multiple_scanners_r_2.l index 9b69816..a10d63d 100644 --- a/tests/multiple_scanners_r_2.l +++ b/tests/multiple_scanners_r_2.l @@ -31,7 +31,7 @@ %option header="multiple_scanners_r_2.h" %option 8bit prefix="S2_" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn stack reentrant noyy_top_state %x OFF diff --git a/tests/noansi_nr.l b/tests/noansi_nr.l index 07f19cf..db075a4 100644 --- a/tests/noansi_nr.l +++ b/tests/noansi_nr.l @@ -36,7 +36,7 @@ %} %option prefix="test" -%option nounput noyywrap noyylineno warn nodefault +%option nounput noyywrap noyylineno warn nodefault noinput %option noansi-prototypes noansi-definitions IDENT [[:alnum:]_-] diff --git a/tests/noansi_r.l b/tests/noansi_r.l index 172cec6..5a3b778 100644 --- a/tests/noansi_r.l +++ b/tests/noansi_r.l @@ -34,7 +34,7 @@ %} %option prefix="test" -%option nounput noyywrap noyylineno warn nodefault +%option nounput noyywrap noyylineno warn nodefault noinput %option reentrant %option noansi-definitions noansi-prototypes diff --git a/tests/posix.l b/tests/posix.l index a28a2e9..38e8d3b 100644 --- a/tests/posix.l +++ b/tests/posix.l @@ -41,7 +41,7 @@ int tests_ok[NUM_TESTS] = { 0 }; %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn posix-compat diff --git a/tests/posixly_correct.l b/tests/posixly_correct.l index 7999fbf..aff9cbd 100644 --- a/tests/posixly_correct.l +++ b/tests/posixly_correct.l @@ -41,7 +41,7 @@ int tests_ok[NUM_TESTS] = { 0 }; %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/prefix_nr.l b/tests/prefix_nr.l index 015f5e2..c1665df 100644 --- a/tests/prefix_nr.l +++ b/tests/prefix_nr.l @@ -31,7 +31,7 @@ %} %option 8bit prefix="FOO" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/prefix_r.l b/tests/prefix_r.l index 848ac3e..a2d4c1a 100644 --- a/tests/prefix_r.l +++ b/tests/prefix_r.l @@ -31,7 +31,7 @@ %} %option reentrant %option 8bit prefix="FOO" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/pthread.l b/tests/pthread.l index 985d214..38080c1 100644 --- a/tests/pthread.l +++ b/tests/pthread.l @@ -47,7 +47,7 @@ static int process_text(char* s, yyscan_t scanner); %} %option 8bit prefix="test" -%option nounput nomain nodefault +%option nounput nomain nodefault noinput %option yywrap %option reentrant %option warn diff --git a/tests/quotes.l b/tests/quotes.l index 30fe147..c1386c3 100644 --- a/tests/quotes.l +++ b/tests/quotes.l @@ -56,7 +56,7 @@ static int foo (int i){ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/reject.l4 b/tests/reject.l4 index 190c700..27982b1 100644 --- a/tests/reject.l4 +++ b/tests/reject.l4 @@ -29,7 +29,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn reject diff --git a/tests/rescan_nr.direct.l b/tests/rescan_nr.direct.l index 84de3a4..86103aa 100644 --- a/tests/rescan_nr.direct.l +++ b/tests/rescan_nr.direct.l @@ -28,7 +28,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn stack never-interactive %x STATE_1 diff --git a/tests/rescan_r.direct.l b/tests/rescan_r.direct.l index 7cc8857..2255ee2 100644 --- a/tests/rescan_r.direct.l +++ b/tests/rescan_r.direct.l @@ -28,7 +28,7 @@ %} %option 8bit prefix="test" -%option nounput nomain noyywrap reentrant +%option nounput nomain noyywrap noinput reentrant %option warn stack never-interactive %x STATE_1 diff --git a/tests/string_nr.l b/tests/string_nr.l index 54cbfd0..3dd752a 100644 --- a/tests/string_nr.l +++ b/tests/string_nr.l @@ -33,7 +33,7 @@ %} %option 8bit prefix="test" -%option nounput nomain nodefault noyywrap +%option nounput nomain nodefault noyywrap noinput %option warn diff --git a/tests/string_r.l b/tests/string_r.l index 9528015..d98c98a 100644 --- a/tests/string_r.l +++ b/tests/string_r.l @@ -33,7 +33,7 @@ %} %option 8bit prefix="test" -%option nounput nomain nodefault noyywrap +%option nounput nomain nodefault noyywrap noinput %option warn reentrant diff --git a/tests/tableopts.l4 b/tests/tableopts.l4 index f0358dd..bb79407 100644 --- a/tests/tableopts.l4 +++ b/tests/tableopts.l4 @@ -29,7 +29,7 @@ %} %option 8bit -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn yylineno diff --git a/tests/top.l b/tests/top.l index 92a2c02..25f4773 100644 --- a/tests/top.l +++ b/tests/top.l @@ -41,7 +41,7 @@ %option reentrant %option 8bit header="top.h" prefix="test" -%option nounput nomain noyywrap +%option nounput nomain noyywrap noinput %option warn diff --git a/tests/yyextra.l b/tests/yyextra.l index 172d02d..37e8821 100644 --- a/tests/yyextra.l +++ b/tests/yyextra.l @@ -48,7 +48,7 @@ static void append_char (char c, yyscan_t scanner ); %} %option 8bit prefix="test" -%option nounput nomain noyywrap nodefault +%option nounput nomain noyywrap nodefault noinput %option warn %option reentrant |