Fix build warning 83/62383/1
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 16 Mar 2016 01:24:07 +0000 (10:24 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 16 Mar 2016 01:24:07 +0000 (10:24 +0900)
Change-Id: I6055a44bb7cf4174461ef1eb32d68491df557917
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/DcmDbUtils.h
include/DcmDebugUtils.h
include/DcmMainSvc.h
libdcm-util/include/dcm_image_debug_utils.h
src/DcmIpcUtils.cpp

index b0cc82eae1f79bc4d5872cf3304ca0c18633cdff..f03db10cf95586316f96a652fd6d2160e3db11f1 100755 (executable)
@@ -36,7 +36,7 @@ private:
 
 public:
        uid_t dcm_uid;
-       static DcmDbUtils *getInstance();
+       static DcmDbUtils *getInstance(void);
        int _dcm_svc_db_connect(uid_t uid);
        int _dcm_svc_db_disconnect();
        int _dcm_svc_db_get_scan_image_list_by_path(GList **image_list, bool mmc_mounted, const char *file_path);
index 9e7d29c932bf21319fd8aa2fcdb6c585ed4fe821..3fe90288b04303fd630ef8de6b5c5d4a104c7b9d 100755 (executable)
@@ -90,8 +90,7 @@
 #define ERR_BUF_LENGHT 256
 #define dcm_stderror(fmt) do { \
                                        char dcm_stderror_buf[ERR_BUF_LENGHT] = {0, }; \
-                                       strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT); \
-                                       dcm_error(fmt" : standard error= [%s]", dcm_stderror_buf); \
+                                       LOGE(fmt" : standard error= [%s]", strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT)); \
                                } while (0)
 
 #define DCM_CHECK_VAL(expr, val)               dcm_retvm_if(!(expr), val, "Invalid parameter, return ERROR code!")
index b7ac0794cbd6c3522ddd23a379d7fa7ea8f91ee2..b371a767f80985b2de13b7313ae312c501a7ba6c 100755 (executable)
@@ -45,7 +45,7 @@ public:
        GSource *main_thread_quit_timer;
        bool scan_thread_working;
 
-       static DcmMainSvc *getInstance();
+       static DcmMainSvc *getInstance(void);
        void dcmServiceStartjobs();
        void dcmServiceFinishjobs();
        int waitScanThreadReady();
index 751d84d5ccd0eb69033c4f1df788fd60cd24daa5..52db91b0dd428ebf4523e5528b2d92bf7b183af8 100755 (executable)
@@ -95,8 +95,7 @@
 #define ERR_BUF_LENGHT 256
 #define dcm_stderror(fmt) do { \
                char dcm_stderror_buf[ERR_BUF_LENGHT] = {0, }; \
-               strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT); \
-               dcm_error(fmt" : standard error= [%s]", dcm_stderror_buf); \
+               LOGE(fmt" : standard error= [%s]", strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT)); \
        } while (0)
 
 #define DCM_CHECK_VAL(expr, val)               dcm_retvm_if(!(expr), val , "Invalid parameter, return ERROR code!")
index 0eb3bd4a5798dde7c20e367de0c682e5a32d3da5..80b1939cb6d6dc1a01fd46855c7f78e490e4e6ac 100755 (executable)
@@ -143,7 +143,6 @@ int DcmIpcUtils::sendClientSocketMsg(int socket_fd, DcmIpcMsgType msg_type, uid_
        dcm_debug("Send message type: %d", msg_type);
 
        DcmIpcMsg send_msg;
-       int err = 0;
        int sock = -1;
 
        if (socket_fd < 0) {