diff options
author | Haejeong Kim <backto.kim@samsung.com> | 2017-05-17 16:39:41 +0900 |
---|---|---|
committer | Haejeong Kim <backto.kim@samsung.com> | 2017-05-17 16:39:41 +0900 |
commit | beeba1d851b990b7ac150452489c289d2e96dc47 (patch) | |
tree | 669fd1fed233a7200e877796d5357db5223785e8 | |
parent | 06a75284fb5bf7f8ddcd428a507b3efc81af7db4 (diff) | |
download | libmedia-thumbnail-beeba1d851b990b7ac150452489c289d2e96dc47.tar.gz libmedia-thumbnail-beeba1d851b990b7ac150452489c289d2e96dc47.tar.bz2 libmedia-thumbnail-beeba1d851b990b7ac150452489c289d2e96dc47.zip |
Add option to check warning error and fix warning
Change-Id: I834bfab50cfe98312fa1cba2d1db6ed85da4c3db
-rwxr-xr-x | CMakeLists.txt | 2 | ||||
-rwxr-xr-x | server/thumb-server-internal.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7eb108f..8336a05 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ FOREACH(flag ${pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Werror") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC") diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c index f3d3bc0..c0b69ea 100755 --- a/server/thumb-server-internal.c +++ b/server/thumb-server-internal.c @@ -252,7 +252,7 @@ int _thumb_daemon_process_queue_jobs(gpointer data) { int err = MS_MEDIA_ERR_NONE; char *path = NULL; - uid_t uid = NULL; + uid_t uid = 0; if (g_cur_idx < g_idx) { thumb_warn("There are %d jobs in the queue", g_idx - g_cur_idx); |