typecast for pthread_join
diff --git a/testcases/kernel/mem/mtest06/Makefile b/testcases/kernel/mem/mtest06/Makefile
index 2752ddc..7d332d8 100644
--- a/testcases/kernel/mem/mtest06/Makefile
+++ b/testcases/kernel/mem/mtest06/Makefile
@@ -1,4 +1,4 @@
-CFLAGS := -O -w -g
+CFLAGS := -Wall -O -g
LDFLAGS := -lpthread
SRCS=$(wildcard *.c)
diff --git a/testcases/kernel/mem/mtest06/mmap1.c b/testcases/kernel/mem/mtest06/mmap1.c
index f94e631..f5ef9c4 100644
--- a/testcases/kernel/mem/mtest06/mmap1.c
+++ b/testcases/kernel/mem/mtest06/mmap1.c
@@ -621,7 +621,7 @@
for (thrd_ndx = 0; thrd_ndx < 2; thrd_ndx++)
{
- if (pthread_join(thid[thrd_ndx], &status[thrd_ndx]))
+ if (pthread_join(thid[thrd_ndx], (void *)&status[thrd_ndx]))
{
perror("main(): pthread_create()");
exit(-1);