summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xCMakeLists.txt2
-rwxr-xr-xserver/thumb-server-internal.c2
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);