summaryrefslogtreecommitdiff
path: root/tests/pthread.l
diff options
context:
space:
mode:
authorMariusz PluciƄski <mplucinski@mplucinski.com>2014-07-25 16:58:17 +0200
committerWill Estes <westes575@gmail.com>2014-11-23 20:29:49 -0500
commit71e207c1ac1bb664326a5539d93a022bf0deade9 (patch)
tree015a573a5b204a00b5a7ef177d1b92e4cd8ba515 /tests/pthread.l
parentc0303615a661ee0fcb399b888efb2a653e6b66ed (diff)
Fix a few "unused parameter" warnings
Diffstat (limited to 'tests/pthread.l')
-rw-r--r--tests/pthread.l8
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);