Fixed Music Chooser Warnings 61/50261/2
authorbhutani.92 <bhutani.92@samsung.com>
Tue, 27 Oct 2015 07:02:53 +0000 (12:32 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Tue, 27 Oct 2015 10:13:55 +0000 (15:43 +0530)
Change-Id: I1a9334c4ad33f05196d7d479a791b7d98638c155
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
music-chooser/src/include/mc-debug.h
music-chooser/src/mc-index.c
src/include/mp-player-debug.h

index 18cd5a1f735220d985fedbd5073cabe254656d70..a549a484da48f5aa064a57ea4f03787ef81d7721 100644 (file)
 #define LOG_COLOR_GREEN        "\033[32m"
 #define LOG_COLOR_BLUE         "\033[36m"
 
+#ifndef LOGD_IF
+#define LOGD_IF(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+#ifndef LOGI_IF
+#define LOGI_IF(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, ##arg)
+#endif
+#ifndef LOGW_IF
+#define LOGW_IF(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, ##arg)
+#endif
+
 #define DEBUG_TRACE(fmt, arg...)       LOGD_IF(TRUE,  LOG_COLOR_GREEN"[TID:%d]   "fmt""LOG_COLOR_RESET, gettid(), ##arg)
 #define INFO_TRACE(fmt, arg...)        LOGI_IF(TRUE,  LOG_COLOR_GREEN"[TID:%d]    "fmt""LOG_COLOR_RESET, gettid(), ##arg)
 #define WARN_TRACE(fmt, arg...)        LOGW_IF(TRUE,  LOG_COLOR_YELLOW"[TID:%d]   "fmt""LOG_COLOR_RESET, gettid(), ##arg)
index 475dc31cafabdc78c2e1f14a01f4caf46027ab92..886073e6389828931544c7d8b0db6c128b5e326d 100755 (executable)
@@ -259,7 +259,6 @@ static void _mp_fastscoller_append_item(void *data, Evas_Object *obj)
        char *str = NULL;
        char buf[PATH_MAX] = {0, };
        Eina_Unicode uni;
-       Elm_Object_Item *it = NULL;
        char *locale = NULL;
        Evas_Object *list = (Evas_Object *)data;
        MP_CHECK(obj);
@@ -286,7 +285,7 @@ static void _mp_fastscoller_append_item(void *data, Evas_Object *obj)
                snprintf(buf, i - j + 1, "%s", str + j);
                buf[i - j + 1] = 0;
 
-               it = elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
+               elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
                //elm_index_item_priority_set(it, 0);
        }
 
@@ -296,22 +295,20 @@ static void _mp_fastscoller_append_item(void *data, Evas_Object *obj)
        if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
                ERROR_TRACE("Unable to fetch the current language setting with return value %d", retcode);
        }
-       if (!ea_locale_latin_get(locale))
-       {
+       if (!ea_locale_latin_get(locale)) {
                str = dgettext("efl-extension", "IDS_EA_BODY_ABCDEFGHIJKLMNOPQRSTUVWXYZ_SECOND");
                MP_CHECK(str);
                len = strlen(str);
 
                i = 0;
-               while (i < len)
-               {
+               while (i < len) {
                        j = i;
                        uni = eina_unicode_utf8_next_get(str, &i);
                        MP_CHECK(uni);
                        snprintf(buf, i - j + 1, "%s", str + j);
                        buf[i - j + 1] = 0;
 
-                       it = elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
+                       elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
                        //elm_index_item_priority_set(it, 1);
                }
 
index 33832f50e833b6779834c719b4485457bb4167f7..d636d52ccb36848d6ac5f6859df688ac5873938c 100644 (file)
 #define LOG_COLOR_BLUE         "\033[36m"
 #define LOG_COLOR_PURPLE   "\033[35m"
 
+#ifndef LOGD_IF
+#define LOGD_IF(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+#ifndef LOGI_IF
+#define LOGI_IF(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, ##arg)
+#endif
+#ifndef LOGW_IF
+#define LOGW_IF(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, ##arg)
+#endif
+#ifndef SECURE_LOGD
+#define SECURE_LOGD(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+#ifndef SECURE_LOGI
+#define SECURE_LOGI(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+
 #ifndef TRUE
 #define TRUE 1
 #endif