diff options
author | rlar <rlar> | 2016-03-16 19:45:37 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-18 14:35:39 -0400 |
commit | 676a62ec1e83d76b72d6b3b506b985ddb1c65832 (patch) | |
tree | 31950e28554f355ce698908cc36324588aeaf026 /tests | |
parent | d112fbaf53e158839ab73b0d6a23601493c5c603 (diff) |
warning: no previous prototype for '...' [-Wmissing-prototypes]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bison_nr_parser.y | 2 | ||||
-rw-r--r-- | tests/bison_yylloc_parser.y | 2 | ||||
-rw-r--r-- | tests/bison_yylval_parser.y | 2 | ||||
-rw-r--r-- | tests/pthread.l | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/bison_nr_parser.y b/tests/bison_nr_parser.y index cbb4f2c..6b55b87 100644 --- a/tests/bison_nr_parser.y +++ b/tests/bison_nr_parser.y @@ -42,7 +42,7 @@ extern int testget_lineno(void); /* A dummy function. A check against seg-faults in yylval->str. */ -int process_text(char* s) { +static int process_text(char* s) { int total =0; while(*s) { total += (int) *s; diff --git a/tests/bison_yylloc_parser.y b/tests/bison_yylloc_parser.y index 8737291..51c0557 100644 --- a/tests/bison_yylloc_parser.y +++ b/tests/bison_yylloc_parser.y @@ -44,7 +44,7 @@ extern int testget_lineno(void*); /* A dummy function. A check against seg-faults in yylval->str. */ -int process_text(char* s) { +static int process_text(char* s) { int total =0; while(*s) { total += (int) *s; diff --git a/tests/bison_yylval_parser.y b/tests/bison_yylval_parser.y index 4159d7b..3fc9c58 100644 --- a/tests/bison_yylval_parser.y +++ b/tests/bison_yylval_parser.y @@ -40,7 +40,7 @@ int yyerror(void* scanner, const char* msg); /* A dummy function. A check against seg-faults in yylval->str. */ -int process_text(char* s) { +static int process_text(char* s) { int total =0; while(*s) { total += (int) *s; diff --git a/tests/pthread.l b/tests/pthread.l index 535cab2..b2ca8c1 100644 --- a/tests/pthread.l +++ b/tests/pthread.l @@ -114,7 +114,7 @@ static pthread_mutex_t *file_locks; static char **filenames; -void * thread_func ( void* arg ) +static void * thread_func ( void* arg ) { int i; |