SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Wno-deprecated-declarations")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Wno-deprecated-declarations -Werror")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC")
return title;
}
-#define BUF_LENGHT 256
-
-void _media_svc_print_stderror(void)
-{
- char buf[BUF_LENGHT] = {0,};
-
- media_svc_error("STANDARD ERROR [%s]", strerror_r(errno, buf, BUF_LENGHT));
-}
-
int _media_svc_get_media_type(const char *path, int *mediatype)
{
int ret = MS_MEDIA_ERR_NONE;
ret = _media_svc_get_folder_modified_time_by_path(db_handle, path, storage_id, &modified_time);
system_time = _media_svc_get_file_time(path);
- media_svc_error("modified_time = [%d], system_time = [%d], path = [%s]", modified_time, system_time, path);
+ media_svc_error("modified_time = [%ld], system_time = [%d], path = [%s]", modified_time, system_time, path);
if (system_time != modified_time && system_time != 0)
*modified = TRUE;
bool _media_svc_check_pinyin_support(void);
int _media_svc_extract_music_metadata_for_update(sqlite3 *handle, media_svc_content_info_s *content_info, media_svc_media_type_e media_type);
char *_media_svc_get_title_from_path(const char *path);
-void _media_svc_print_stderror(void);
int _media_svc_get_media_type(const char *path, int *mediatype);
#ifdef __cplusplus