Fix warning as error for V2

Change-Id: I70cfd971fda629011ba1be84fef15afea196d393
diff --git a/mbtk/mbtk_rild_v2/src/atchannel.c b/mbtk/mbtk_rild_v2/src/atchannel.c
index 56b1d08..fe96df1 100755
--- a/mbtk/mbtk_rild_v2/src/atchannel.c
+++ b/mbtk/mbtk_rild_v2/src/atchannel.c
@@ -847,7 +847,7 @@
 
     pthread_attr_init (&attr);
     pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
-    ret = pthread_create(&s_tid_reader, &attr, readerLoop, &attr);
+    ret = pthread_create(&s_tid_reader, &attr, readerLoop, NULL);
     if (ret < 0)
     {
         LOGE("AT thread create fail.");
@@ -855,7 +855,7 @@
     }
 
     pthread_t uart_tid_reader;
-    ret = pthread_create(&uart_tid_reader, &attr, readerUrcLoop, &attr);
+    ret = pthread_create(&uart_tid_reader, &attr, readerUrcLoop, NULL);
     if (ret < 0)
     {
         LOGE("Uart thread create fail.");
@@ -1244,7 +1244,7 @@
  */
 int at_handshake()
 {
-    int i;
+//    int i;
     int err = 0;
 
     if (0 != pthread_equal(s_tid_reader, pthread_self()))