diff options
author | rlar <rlar> | 2016-03-16 19:44:46 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-18 13:56:25 -0400 |
commit | f4be44b2b2d02c21273d4b89daf8dd60e6d9ee08 (patch) | |
tree | d4c478349b47440a3c85876e8d193b603a888217 /tests | |
parent | 8756116ccb1f557814e06414ae522d612907585e (diff) |
main(), warning: old-style function definition [-Wold-style-definition]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/alloc_extra.l | 2 | ||||
-rw-r--r-- | tests/array_nr.l | 2 | ||||
-rw-r--r-- | tests/array_r.l | 2 | ||||
-rw-r--r-- | tests/basic_nr.l | 2 | ||||
-rw-r--r-- | tests/basic_r.l | 2 | ||||
-rw-r--r-- | tests/ccl.l | 2 | ||||
-rw-r--r-- | tests/debug_nr.l | 2 | ||||
-rw-r--r-- | tests/debug_r.l | 2 | ||||
-rw-r--r-- | tests/extended.l | 2 | ||||
-rw-r--r-- | tests/mem_nr.l | 2 | ||||
-rw-r--r-- | tests/mem_r.l | 2 | ||||
-rw-r--r-- | tests/noansi_r.l | 2 | ||||
-rw-r--r-- | tests/posix.l | 2 | ||||
-rw-r--r-- | tests/posixly_correct.l | 2 | ||||
-rw-r--r-- | tests/prefix_nr.l | 2 | ||||
-rw-r--r-- | tests/prefix_r.l | 2 | ||||
-rw-r--r-- | tests/quotes.l | 2 | ||||
-rw-r--r-- | tests/string_nr.l | 2 | ||||
-rw-r--r-- | tests/string_r.l | 2 | ||||
-rw-r--r-- | tests/yyextra.l | 2 |
20 files changed, 20 insertions, 20 deletions
diff --git a/tests/alloc_extra.l b/tests/alloc_extra.l index 2c582a8..d50c135 100644 --- a/tests/alloc_extra.l +++ b/tests/alloc_extra.l @@ -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; diff --git a/tests/array_nr.l b/tests/array_nr.l index 52e0753..f4f0f1b 100644 --- a/tests/array_nr.l +++ b/tests/array_nr.l @@ -45,7 +45,7 @@ int main (void); int -main () +main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/array_r.l b/tests/array_r.l index 556d26f..68a6299 100644 --- a/tests/array_r.l +++ b/tests/array_r.l @@ -45,7 +45,7 @@ int main(void); int -main () +main (void) { yyscan_t lexer; diff --git a/tests/basic_nr.l b/tests/basic_nr.l index 3c29757..bbe87c4 100644 --- a/tests/basic_nr.l +++ b/tests/basic_nr.l @@ -52,7 +52,7 @@ WS [[:blank:]] int main(void); -int main () +int main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/basic_r.l b/tests/basic_r.l index e9ff59f..ba5734c 100644 --- a/tests/basic_r.l +++ b/tests/basic_r.l @@ -52,7 +52,7 @@ WS [[:blank:]] int main(void); -int main () +int main (void) { yyscan_t lexer; yylex_init( &lexer ); diff --git a/tests/ccl.l b/tests/ccl.l index c244892..9511604 100644 --- a/tests/ccl.l +++ b/tests/ccl.l @@ -84,7 +84,7 @@ int main(void); int -main () +main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/debug_nr.l b/tests/debug_nr.l index 0596dce..8110ab4 100644 --- a/tests/debug_nr.l +++ b/tests/debug_nr.l @@ -41,7 +41,7 @@ int main(void); int -main () +main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/debug_r.l b/tests/debug_r.l index 0d40e0e..2734a54 100644 --- a/tests/debug_r.l +++ b/tests/debug_r.l @@ -40,7 +40,7 @@ int main(void); -int main () +int main (void) { yyscan_t lexer; yylex_init( &lexer ); diff --git a/tests/extended.l b/tests/extended.l index a113fac..9691307 100644 --- a/tests/extended.l +++ b/tests/extended.l @@ -63,7 +63,7 @@ A(?x: B int main(void); int -main () +main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/mem_nr.l b/tests/mem_nr.l index f25848f..816bc03 100644 --- a/tests/mem_nr.l +++ b/tests/mem_nr.l @@ -158,7 +158,7 @@ void yyfree(void* p) int main(void); int -main () +main (void) { arrsz = 1; ptrs = calloc(1, sizeof(struct memsz)); diff --git a/tests/mem_r.l b/tests/mem_r.l index 33b9888..7270d38 100644 --- a/tests/mem_r.l +++ b/tests/mem_r.l @@ -164,7 +164,7 @@ void yyfree(void* p , void* yyscanner) int main(void); int -main () +main (void) { yyscan_t scanner; arrsz = 1; diff --git a/tests/noansi_r.l b/tests/noansi_r.l index 5a3b778..1387829 100644 --- a/tests/noansi_r.l +++ b/tests/noansi_r.l @@ -53,7 +53,7 @@ WS [[:blank:]] int main(void); -int main () +int main (void) { yyscan_t lexer; yylex_init( &lexer ); diff --git a/tests/posix.l b/tests/posix.l index 38e8d3b..a565a9d 100644 --- a/tests/posix.l +++ b/tests/posix.l @@ -53,7 +53,7 @@ ab{3} tests_ok[0] = 1; return 0; %% -int main () +int main (void) { YY_BUFFER_STATE state; int i; diff --git a/tests/posixly_correct.l b/tests/posixly_correct.l index aff9cbd..75c3c91 100644 --- a/tests/posixly_correct.l +++ b/tests/posixly_correct.l @@ -53,7 +53,7 @@ ab{3} tests_ok[0] = 1; return 0; %% -int main () +int main (void) { YY_BUFFER_STATE state; int i; diff --git a/tests/prefix_nr.l b/tests/prefix_nr.l index c1665df..2208ae0 100644 --- a/tests/prefix_nr.l +++ b/tests/prefix_nr.l @@ -64,7 +64,7 @@ int main(void); int -main () +main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/prefix_r.l b/tests/prefix_r.l index a2d4c1a..210a4de 100644 --- a/tests/prefix_r.l +++ b/tests/prefix_r.l @@ -71,7 +71,7 @@ int main(void); int -main () +main (void) { yyscan_t scanner; FOOlex_init( &scanner); diff --git a/tests/quotes.l b/tests/quotes.l index c1386c3..c2bf2f0 100644 --- a/tests/quotes.l +++ b/tests/quotes.l @@ -89,7 +89,7 @@ static int bar (int i){ int main(void); int -main () +main (void) { yyin = stdin; yyout = stdout; diff --git a/tests/string_nr.l b/tests/string_nr.l index e909b2d..320d00b 100644 --- a/tests/string_nr.l +++ b/tests/string_nr.l @@ -59,7 +59,7 @@ int main(void); int -main () +main (void) { char * buf; int len; diff --git a/tests/string_r.l b/tests/string_r.l index 633004a..276a908 100644 --- a/tests/string_r.l +++ b/tests/string_r.l @@ -59,7 +59,7 @@ int main(void); int -main () +main (void) { char * buf; int len; diff --git a/tests/yyextra.l b/tests/yyextra.l index 8957cbb..bfaae34 100644 --- a/tests/yyextra.l +++ b/tests/yyextra.l @@ -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; |