Apply "-Werror -Wall -Wextra" option 60/61760/1 accepted/tizen/common/20160311.201551 accepted/tizen/ivi/20160311.060653 accepted/tizen/mobile/20160311.060522 accepted/tizen/tv/20160311.060553 accepted/tizen/wearable/20160311.060621 submit/tizen/20160310.101831
authorYunjin Lee <yunjin-.lee@samsung.com>
Thu, 10 Mar 2016 05:13:00 +0000 (14:13 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Thu, 10 Mar 2016 05:13:00 +0000 (14:13 +0900)
Change-Id: I7cd73245483003c6a76471ba2e05568fbee4eaa7
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
CMakeLists.txt
packaging/privilege-info.spec
src/CMakeLists.txt
test/tc_privilege_info.c

index 8f99ca8..0ed70da 100755 (executable)
@@ -9,6 +9,8 @@ ENDIF()
 ADD_DEFINITIONS("-DCLIENT_IPC_THREAD")
 ADD_DEFINITIONS("-DUSE_IPC_EPOLL")
 
+ADD_DEFINITIONS("-Werror -Wall -Wextra")
+
 STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
 ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
 
index ab06a4b..61db71e 100755 (executable)
@@ -19,7 +19,6 @@ Privilege Information
 
 %package -n privilege-info-devel
 Summary: Privilege Info API (Development)
-Group: TO_BE/FILLED_IN
 Requires: %{name} = %{version}-%{release}
 
 %description -n privilege-info-devel
@@ -27,7 +26,6 @@ The Privilege Info API provides functions to get privilege information (DEV)
 
 %package -n tc-privilege-info
 Summary: tc-privilege-info
-Group: TO_BE/FILLED_IN
 Requires: %{name} = %{version}-%{release}
 
 %description -n tc-privilege-info
index f1dbe9f..d147f9f 100755 (executable)
@@ -16,7 +16,7 @@ FOREACH(flag ${${PACKAGE_NAME}_CFLAGS})
 ENDFOREACH(flag)
 
 # Compiler flags
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall -fvisibility=hidden -D_WITH_SYSTEMD_")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -fvisibility=hidden -D_WITH_SYSTEMD_")
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${PACKAGE_NAME_CFLAGS}")
 
 ########################################################
index 58575af..233f65a 100755 (executable)
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <privilege_information.h>
 
 #define BRIGHTNESS 0
@@ -383,4 +384,5 @@ int main()
        printf("fail : %d\n", fail_cnt);
        __change_color_to_origin();
 
+       return 0;
 }