fix build warning 21/61221/1
authorJongkyu Koo <jk.koo@samsung.com>
Mon, 7 Mar 2016 00:43:54 +0000 (09:43 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Mon, 7 Mar 2016 00:43:54 +0000 (09:43 +0900)
Change-Id: I0c0851f7efbf296a7855098d23e06884eb22f34b
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
server/db/ctsvc_db_access_control.c
test/test_main.c

index 41146b7..0e0ce54 100644 (file)
@@ -140,7 +140,6 @@ static void __ctsvc_set_permission_info(ctsvc_permission_info_s *info)
                return;
        }
 
-       int i = 0;
        while ((ret = ctsvc_stmt_step(stmt))) {
                int id;
                int mode;
index 4c1f4e8..e532542 100644 (file)
@@ -22,7 +22,7 @@
 #include "test_main.h"
 #include "test_debug.h"
 
-void _print_errors(int argc, char **argv)
+int _print_errors(int argc, char **argv)
 {
        DBG("CONTACTS_ERROR_NONE               (%d)", CONTACTS_ERROR_NONE              );
        DBG("CONTACTS_ERROR_OUT_OF_MEMORY      (%d)", CONTACTS_ERROR_OUT_OF_MEMORY     );
@@ -37,6 +37,8 @@ void _print_errors(int argc, char **argv)
        DBG("CONTACTS_ERROR_IPC                (%d)", CONTACTS_ERROR_IPC               );
        DBG("CONTACTS_ERROR_SYSTEM             (%d)", CONTACTS_ERROR_SYSTEM            );
        DBG("CONTACTS_ERROR_INTERNAL           (%d)", CONTACTS_ERROR_INTERNAL              );
+
+       return 0;
 }
 
 static const func _func[] = {