Fix build warnings 36/62436/2
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 16 Mar 2016 05:52:53 +0000 (14:52 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 18 Mar 2016 08:10:13 +0000 (17:10 +0900)
Change-Id: Ib5c50269bd310781811975bc92976f0b36213fa1
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
CMakeLists.txt
src/video_util.c
test/video_util_test.c

index e92ec1a..24f9a9e 100755 (executable)
@@ -44,7 +44,7 @@ FOREACH(flag ${${fw_name}_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 IF("${ARCH}" MATCHES "^arm.*")
index e8d453c..2d7b30e 100755 (executable)
@@ -22,6 +22,7 @@
 #include <mm_error.h>
 #include <video_util.h>
 #include <video_util_private.h>
+#include <system_info.h>
 
 #ifdef LOG_TAG
 #undef LOG_TAG
index 6895ba0..ab6a877 100644 (file)
@@ -69,7 +69,7 @@ typedef struct {
 } test_util_s;
 
 static void display_sub_basic();
-
+void _video_util_start_transcoding(test_util_s *util_s);
 
 void _quit_program(void)
 {
@@ -160,7 +160,7 @@ void _transcode_completed_cb(video_util_error_e error, void *user_data)
        _util_s->idx = idx;
        _util_s->start_time = ntn_start_position;
 
-       _video_util_start_transcoding((test_util_s *)_util_s);
+       _video_util_start_transcoding(_util_s);
 
        return;
 }
@@ -236,6 +236,8 @@ void _video_util_start_transcoding(test_util_s *util_s)
                LOGE("video_util_start_transcoding is failed (%d)", ret);
                return;
        }
+
+       return;
 }
 
 void _reset_var()
@@ -263,7 +265,6 @@ void _reset_var()
 static void input_filename(char *filename)
 {
        int len = strlen(filename);
-       int i = 0;
        int ret = VIDEO_UTIL_ERROR_NONE;
 
        if (len < 0 || len > MAX_STRING_LEN) {
@@ -572,7 +573,6 @@ static void interpret(char *cmd)
                }
        case CURRENT_STATUS_SET_TIME:
                {
-                       int ret = VIDEO_UTIL_ERROR_NONE;
                        int value = atoi(cmd);
                        static int set_time_cnt = 0;