diff options
Diffstat (limited to 'tests/pthread.l')
-rw-r--r-- | tests/pthread.l | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/pthread.l b/tests/pthread.l index 1084321..985d214 100644 --- a/tests/pthread.l +++ b/tests/pthread.l @@ -78,9 +78,13 @@ static int process_text(char* s, yyscan_t scanner); <INITIAL,STATE_1,STATE_2>[[:space:]\r\n]+ { } %% -int yywrap( yyscan_t scanner) { return 1; } +int yywrap( yyscan_t scanner) { + (void)scanner; + return 1; +} static int process_text(char* s, yyscan_t scanner) { + (void)scanner; return (int)(*s) + (int) *(s + yyget_leng(scanner)-1); } @@ -114,6 +118,8 @@ void * thread_func ( void* arg ) { int i; + (void)arg; + /* Wait for go-ahead. */ pthread_mutex_lock( &go_ahead); pthread_mutex_unlock(&go_ahead); |