]> granicus.if.org Git - flex/commitdiff
main(), warning: old-style function definition [-Wold-style-definition]
authorrlar <rlar>
Wed, 16 Mar 2016 18:44:46 +0000 (19:44 +0100)
committerWill Estes <westes575@gmail.com>
Fri, 18 Mar 2016 17:56:25 +0000 (13:56 -0400)
20 files changed:
tests/alloc_extra.l
tests/array_nr.l
tests/array_r.l
tests/basic_nr.l
tests/basic_r.l
tests/ccl.l
tests/debug_nr.l
tests/debug_r.l
tests/extended.l
tests/mem_nr.l
tests/mem_r.l
tests/noansi_r.l
tests/posix.l
tests/posixly_correct.l
tests/prefix_nr.l
tests/prefix_r.l
tests/quotes.l
tests/string_nr.l
tests/string_r.l
tests/yyextra.l

index 2c582a8a0bf0d5735f788fd940a517c5089406d4..d50c1355be9cd2561d288eb671f0abc3f1d8c1e1 100644 (file)
@@ -65,7 +65,7 @@ void *yyalloc ( size_t size, yyscan_t  scanner );
 int main(void);
 
 int
-main ()
+main (void)
 {   
     yyscan_t scanner;
     struct Check check;
index 52e07534f3f2ee78feb699b32ee0d7d0a337aa65..f4f0f1bec042e6d11a8528743e7794cc9132d186 100644 (file)
@@ -45,7 +45,7 @@
 int main (void);
 
 int
-main ()
+main (void)
 {
     yyin = stdin;
     yyout = stdout;
index 556d26fc4e432dcd650538d48c78a79dedb0216f..68a62998d2c6f36ffead752969de83f8a0958301 100644 (file)
@@ -45,7 +45,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyscan_t lexer;
     
index 3c29757c65a7b676af932fd758b6b0f790acc1a0..bbe87c420d73896b0f00253bac480a5355bdb94b 100644 (file)
@@ -52,7 +52,7 @@ WS    [[:blank:]]
 
 int main(void);
 
-int main ()
+int main (void)
 {
     yyin = stdin;
     yyout = stdout;
index e9ff59fadb9f8cd5f1077943dbce00c3c3dd8e64..ba5734c851cecafce73ee389920d88d065a422ae 100644 (file)
@@ -52,7 +52,7 @@ WS    [[:blank:]]
 
 int main(void);
 
-int main ()
+int main (void)
 {
     yyscan_t  lexer;
     yylex_init( &lexer );
index c244892a8aa4c8faf22aa2a1ba3d9d62c9d2fb8b..951160464a552794675f945f8d05d77b7e6eb896 100644 (file)
@@ -84,7 +84,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyin = stdin;
     yyout = stdout;
index 0596dcee83868f71dbce36b215566836207a4ab8..8110ab44a0a58e2bf075fe465de3b2d9f5b565f4 100644 (file)
@@ -41,7 +41,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyin = stdin;
     yyout = stdout;
index 0d40e0ee3aae75755b013515734024afe0fda356..2734a541e43fdf06a8612cf910d199372cdef9db 100644 (file)
@@ -40,7 +40,7 @@
 
 int main(void);
 
-int main ()
+int main (void)
 {
     yyscan_t  lexer;
     yylex_init( &lexer );
index a113fac3ef63f7e270585b6482cf5948a1fe6114..96913074a93ae4cb9085f1cf0a2e4d89f9aa75e6 100644 (file)
@@ -63,7 +63,7 @@ A(?x: B
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyin = stdin;
     yyout = stdout;
index f25848f825a910990f68bdbd2c3496230d5ba84d..816bc032f353ccb56cfc50ff29f4afcc9bdab4bd 100644 (file)
@@ -158,7 +158,7 @@ void yyfree(void* p)
 int main(void);
 
 int
-main ()
+main (void)
 {
     arrsz = 1;
     ptrs  = calloc(1, sizeof(struct memsz));
index 33b9888d13565bc6ec07670c6d2cd45051fc010a..7270d384d0f6678c1786635b5d118a6ca0afc388 100644 (file)
@@ -164,7 +164,7 @@ void yyfree(void* p , void* yyscanner)
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyscan_t scanner;
     arrsz = 1;
index 5a3b7789782b4af27de80dc5fca82687c02b6c01..13878293ff8fa55787f4cae61fadf08a7ec402f7 100644 (file)
@@ -53,7 +53,7 @@ WS    [[:blank:]]
 
 int main(void);
 
-int main ()
+int main (void)
 {
     yyscan_t  lexer;
     yylex_init( &lexer );
index 38e8d3b03db69c92ab949e4638adf50bb4de4109..a565a9dcdd68c067c95c0a8ec343d64219051b32 100644 (file)
@@ -53,7 +53,7 @@ ab{3}    tests_ok[0] = 1; return 0;
 %%
 
 
-int main ()
+int main (void)
 {
     YY_BUFFER_STATE state;
     int i;
index aff9cbddf670f8f524ad65e4b9ce092027b94ebd..75c3c916b7e6544f2cfada1c155841bf91cbf21b 100644 (file)
@@ -53,7 +53,7 @@ ab{3}    tests_ok[0] = 1; return 0;
 %%
 
 
-int main ()
+int main (void)
 {
     YY_BUFFER_STATE state;
     int i;
index c1665df4baf98bcc73e304bc2d8ab36d029b2929..2208ae01d72e351c0994191cfe31aaf70199d5f0 100644 (file)
@@ -64,7 +64,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyin = stdin;
     yyout = stdout;
index a2d4c1a77eeb6391341bb8e56369a8fda79d68bd..210a4de977cba32e0a2c07e1a26c2d6bf5cc088a 100644 (file)
@@ -71,7 +71,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyscan_t  scanner;
     FOOlex_init( &scanner);
index c1386c38ea866f4e48cc874e537224969521abef..c2bf2f08a050ba13cd51f5e81be3f7e1f0f1ece2 100644 (file)
@@ -89,7 +89,7 @@ static int bar (int i){
 int main(void);
 
 int
-main ()
+main (void)
 {
     yyin = stdin;
     yyout = stdout;
index e909b2d382c8177947946b8badb55adbc98a9643..320d00bdaaaf339e9e5ccb0611abb303ce65143f 100644 (file)
@@ -59,7 +59,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     char * buf;
     int len;
index 633004a1a0a4d39d05e7e35c404ff652bbc4267e..276a9083c0697be9b9dcf7182b4053209672191a 100644 (file)
@@ -59,7 +59,7 @@
 int main(void);
 
 int
-main ()
+main (void)
 {
     char * buf;
     int len;
index 8957cbb36e77b6527ce5ef19d18d1673879c9d39..bfaae3446421864861d105edf0a64870d4c2928d 100644 (file)
@@ -62,7 +62,7 @@ static void append_char (char c,  yyscan_t  scanner );
 int main(void);
 
 int
-main ()
+main (void)
 {   
     yyscan_t  scanner;
     struct Buffer * buf;