]> granicus.if.org Git - flex/commitdiff
Fix `unused function` warnings in tests
authorMariusz Pluciński <mplucinski@mplucinski.com>
Fri, 25 Jul 2014 16:03:39 +0000 (18:03 +0200)
committerWill Estes <westes575@gmail.com>
Wed, 26 Nov 2014 18:26:49 +0000 (13:26 -0500)
43 files changed:
tests/alloc_extra.l
tests/array_nr.l
tests/array_r.l
tests/basic_nr.l
tests/basic_r.l
tests/bison_nr_scanner.l
tests/bison_yylloc_scanner.l
tests/bison_yylval_scanner.l
tests/ccl.l
tests/cxx_basic.ll
tests/debug_nr.l
tests/debug_r.l
tests/extended.l
tests/header_nr_scanner.l
tests/header_r_scanner.l
tests/include_by_buffer.direct.l
tests/include_by_push.direct.l
tests/include_by_reentrant.direct.l
tests/lineno_nr.l
tests/lineno_r.l
tests/lineno_trailing.l
tests/mem_nr.l
tests/mem_r.l
tests/multiple_scanners_nr_1.l
tests/multiple_scanners_nr_2.l
tests/multiple_scanners_r_1.l
tests/multiple_scanners_r_2.l
tests/noansi_nr.l
tests/noansi_r.l
tests/posix.l
tests/posixly_correct.l
tests/prefix_nr.l
tests/prefix_r.l
tests/pthread.l
tests/quotes.l
tests/reject.l4
tests/rescan_nr.direct.l
tests/rescan_r.direct.l
tests/string_nr.l
tests/string_r.l
tests/tableopts.l4
tests/top.l
tests/yyextra.l

index 14e18370c1a32d22b59846d0a9e6ede1c199787c..2c582a8a0bf0d5735f788fd940a517c5089406d4 100644 (file)
@@ -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
index d961ee9174ef8484ea78019c00f1ec9f01832444..52e07534f3f2ee78feb699b32ee0d7d0a337aa65 100644 (file)
@@ -31,7 +31,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn array
 
 
index 02852407d8b4f07d108bea15cfb02b6af7609537..556d26fc4e432dcd650538d48c78a79dedb0216f 100644 (file)
@@ -31,7 +31,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn array reentrant
 
 
index 7109b2b3a784c7f94761b966eef7ea3efd91e13f..3c29757c65a7b676af932fd758b6b0f790acc1a0 100644 (file)
@@ -35,7 +35,7 @@
 %}
 
 %option prefix="test"
-%option nounput noyywrap noyylineno warn nodefault
+%option nounput noyywrap noyylineno warn nodefault noinput
 
 IDENT [[:alnum:]_-]
 WS    [[:blank:]]
index 425af7c52ec9ceacbd8a5757623e25748365c26a..e9ff59fadb9f8cd5f1077943dbce00c3c3dd8e64 100644 (file)
@@ -34,7 +34,7 @@
 %}
 
 %option prefix="test"
-%option nounput noyywrap noyylineno warn nodefault
+%option nounput noyywrap noyylineno warn nodefault noinput
 %option reentrant
 
 IDENT [[:alnum:]_-]
index 154d12b38066976e6e15c1c25bcbd30c979c9c3f..4378e5aed30a3e2d5129af480074af1b18c5d63a 100644 (file)
@@ -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
 
 
 %%
index b4bb9f7d7107fc33deacdbbab53b5019424e40b2..3708237553b418310ddaf7c67094dd9b82a2d9e2 100644 (file)
@@ -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
 
 
 %%
index 4608bf302aa6e4c0b1ee99af1493551455ef5e47..db99fa0bfd92fff8ec8ce0b22d3a322233e75d62 100644 (file)
@@ -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
 
 
index fa858f9949343f9f56fa381c9509ec10c7c994e9..c244892a8aa4c8faf22aa2a1ba3d9d62c9d2fb8b 100644 (file)
@@ -33,7 +33,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index ddeb2a7d0583d23ba6232b8a71460a5d6f349459..6ffa39cf41c523408d46ad13cc521205d2495648 100644 (file)
@@ -28,9 +28,8 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
 %option warn c++
-
+%option nounput nomain noinput noyywrap 
 
 %%
 
index 231a1813ec9bf5e14cfec2f6cf345acfe68499a3..0596dcee83868f71dbce36b215566836207a4ab8 100644 (file)
@@ -30,7 +30,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn debug
 
 %%
index c6982bff6b599ec35dab4b03f6422e1142832a49..0d40e0ee3aae75755b013515734024afe0fda356 100644 (file)
@@ -30,7 +30,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn debug reentrant
 
 %%
index ec3d504f896b37f0774613abb694b59d8cf5e882..a113fac3ef63f7e270585b6482cf5948a1fe6114 100644 (file)
@@ -31,7 +31,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index 31332fcc7dd394f895ba5e4163592b11e214f8a2..b429a6ce04016301e7e26e3a796786353bf9bbbc 100644 (file)
@@ -30,7 +30,7 @@
 %}
 
 %option 8bit prefix="test" header="header_nr_scanner.h"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index 3bf53c70fdfaec50e0bc525883bc8bdb93507949..bfad8bacf2a8167ce659e7f8f715380a6484eac9 100644 (file)
@@ -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
 
 
index 4dc0091a8aa5b59f9b772466eba5287f6bd36a11..f3b2d2a723f5851def12083474a397facbf5d2a1 100644 (file)
@@ -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
index 9e978ce3ded7d20e81f325714fcd688b11312aec..6b7a5fa050efc71a41135a3fde8c777dca288e6e 100644 (file)
@@ -32,7 +32,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap
+%option nounput nomain noyywrap noinput
 %option warn
 
 %x GET_FILENAME
index f993133c9311558bf93c1817a08af686e4361830..8cd4900edf2a0f3de115fffd08a7469de2437aee 100644 (file)
@@ -32,7 +32,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option reentrant
 %option warn
 
index 3072de49d319e332f1cdf7093f77add64778ba7f..8e35fc13da2b135c0ac077ad5db1d527db1c29d8 100644 (file)
@@ -35,7 +35,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap yylineno
+%option nounput nomain noyywrap noinput yylineno
 %option warn
 
 WORD [[:alpha:]]+
index 443357577eee12ea7ea81e1d589e1935973e7e85..e6207c6f28c170c19a89971dd1c2a4e1d815bff1 100644 (file)
@@ -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:]]+
index 9ac2c84332641cc50dfd545a8bdf4155af4bcbb2..3a8a683ea5353224d4c673fac0f0ce2fb2230c69 100644 (file)
@@ -35,7 +35,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap yylineno
+%option nounput nomain noyywrap noinput yylineno
 %option warn
 
 WORD [[:alpha:]]+
index 9935763213113b3df3744b7cc482fee1ccf44f47..c7a6ce086508dc0856dba72a8428b9959816975e 100644 (file)
@@ -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
 
index ec150c0a237f63f079138d5f0753d24bc41a8046..cbfe08cf41ced62f3efd3eb147e2a41528a4b64b 100644 (file)
@@ -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
 
index 5e848c2b756b48bbb9851bf6248fa44cbd6a8a77..fcba19430388aaa7b846a5370aae6c0e70a0e3ee 100644 (file)
@@ -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
index 5a9ac9952bed893c4744eaf8988090f9155f3da5..fff2e88bf615c9174b2cf64903c675df3ebafa2f 100644 (file)
@@ -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
index 1725e3e2dd18c2a1617e91f16b790dc48b83a781..75ef17929c2246278a0b0fdae4f3b6303b67b1ec 100644 (file)
@@ -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
index 9b69816fc68c068a3f35a348881a87e75f381c6e..a10d63dee66735d61b4fd71dab97f99687a2319f 100644 (file)
@@ -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
index 07f19cf13c9a20a0507ee9bef2a53daaae195f88..db075a43322a4a56669ed54e16f59b5dd2ace728 100644 (file)
@@ -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:]_-]
index 172cec6dd3aa33d23fe0f43f407b67caadfd78a0..5a3b7789782b4af27de80dc5fca82687c02b6c01 100644 (file)
@@ -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
 
index a28a2e91ec4f897c27188ee5a2461dcfe2bbff94..38e8d3b03db69c92ab949e4638adf50bb4de4109 100644 (file)
@@ -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
 
 
index 7999fbfab174d3f8f4c1a93cb795addf590cca2d..aff9cbddf670f8f524ad65e4b9ce092027b94ebd 100644 (file)
@@ -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
 
 
index 015f5e2f2fbacc375564ca45a1bb1ec986be348e..c1665df4baf98bcc73e304bc2d8ab36d029b2929 100644 (file)
@@ -31,7 +31,7 @@
 %}
 
 %option 8bit prefix="FOO"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index 848ac3ef755e0dd123c80d38fb7ad6bb02f8f4f7..a2d4c1a77eeb6391341bb8e56369a8fda79d68bd 100644 (file)
@@ -31,7 +31,7 @@
 %}
 %option reentrant
 %option 8bit prefix="FOO"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index 985d21452ce0125e52d7c5681b64cc213217484b..38080c1e82f411d41fd319440a15e5e7d24dddc5 100644 (file)
@@ -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
index 30fe147ce38734a17bf5c5c20acbdc5bf6bb9083..c1386c38ea866f4e48cc874e537224969521abef 100644 (file)
@@ -56,7 +56,7 @@ static int foo (int i){
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index 190c70011d90a71287773f767d765621fe5a7c10..27982b194d2f5e0463e8afda410048cb6834350c 100644 (file)
@@ -29,7 +29,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn reject
 
 
index 84de3a4ef08ab437af254c808308eacdda75a8fe..86103aa19c275f20801c168038ee8707191a0bf0 100644 (file)
@@ -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
 
index 7cc8857f3937ca5bec3ef43a45438aa12a56048a..2255ee2ff80ed37400f726fe20b1635ea0321274 100644 (file)
@@ -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
 
index 54cbfd0a5cc2218d800cf7c9fb6b8ab8967a7b84..3dd752a650a18b3c4b49774bc4b8a935e8e70027 100644 (file)
@@ -33,7 +33,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain nodefault noyywrap
+%option nounput nomain nodefault noyywrap noinput
 %option warn 
 
 
index 9528015fd0fa8167ca9f2d5dfd2bfcdd8909eafc..d98c98a61a326bce38628c91aae5dff12325c1b4 100644 (file)
@@ -33,7 +33,7 @@
 %}
 
 %option 8bit prefix="test"
-%option nounput nomain nodefault noyywrap 
+%option nounput nomain nodefault noyywrap noinput
 %option warn reentrant
 
 
index f0358dd250a8e0adcf8bf064849efd3eaacca258..bb79407d90c57898b706b32afbbdf3c3204f0a1f 100644 (file)
@@ -29,7 +29,7 @@
 %}
 
 %option 8bit
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn yylineno
 
 
index 92a2c02458b4b2d91e08853d04aab78d4a3986fa..25f4773ff4442b35902b6184a14f1fb6b4cf50a7 100644 (file)
@@ -41,7 +41,7 @@
 
 %option reentrant
 %option 8bit header="top.h" prefix="test"
-%option nounput nomain noyywrap 
+%option nounput nomain noyywrap noinput
 %option warn
 
 
index 172d02d1e9bbce4a3ff00f0f9f53b03cbcfd2a19..37e88213a2b2983475747956236644bb926aa4a9 100644 (file)
@@ -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