Fix build errors 57/233357/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 14 May 2020 04:49:50 +0000 (13:49 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Thu, 14 May 2020 04:49:50 +0000 (13:49 +0900)
Change-Id: I69e8d81808e4a7ddf984336151cfb3ea653a1765

packaging/org.tizen.multi-assistant-service.spec
plugins/wakeup-manager/src/wakeup_manager_wrapper.cpp

index 6ce5be6ee6e92fb8a24db4ed35bc4307a54a90be..99398c10f1b8e00081983fe83853d8c4520ae87a 100644 (file)
@@ -52,6 +52,9 @@ LDFLAGS="$LDFLAGS -Wl,-z -Wl,nodelete"
        export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 %endif
 
+export CFLAGS+=" -Wno-format-truncation -Wno-stringop-truncation -Wno-format-overflow -Wno-stringop-overflow"
+export CXXFLAGS+=" -Wno-format-truncation -Wno-stringop-truncation -Wno-format-overflow -Wno-stringop-overflow"
+
 export LDFLAGS
 %cmake \
        -DCMAKE_INSTALL_PREFIX=%{_appdir} \
index 6e30433d30a174f5ae36e3e9409d91af720e2775..461eb5b043d82d42a8827266a1e3ef56ca8e6028 100644 (file)
@@ -229,7 +229,7 @@ int wakeup_manager_set_default_assistant(const char* appid)
        MWR_LOGD("[ENTER]");
 
        if (NULL == appid) {
-               MWR_LOGD("[ERROR] Parameter is invalid, appid(%s)", appid);
+               MWR_LOGD("[ERROR] Parameter is NULL");
                return -1;
        }
 
@@ -261,7 +261,7 @@ int wakeup_manager_set_language(const char* language)
        MWR_LOGD("[ENTER]");
 
        if (NULL == language) {
-               MWR_LOGD("[ERROR] Parameter is invalid, language(%s)", language);
+               MWR_LOGD("[ERROR] Parameter is NULL");
                return -1;
        }
 
@@ -307,7 +307,7 @@ int wakeup_manager_update_voice_feedback_state(const char* appid, int state)
 
        string appid_string;
        if (NULL == appid) {
-               MWR_LOGD("[ERROR] Parameter is invalid, appid(%s)", appid);
+               MWR_LOGD("[ERROR] Parameter is NULL");
        } else {
                appid_string = appid;
        }
@@ -344,7 +344,7 @@ int wakeup_manager_set_background_volume(const char* appid, double ratio)
 
        string appid_string;
        if (NULL == appid) {
-               MWR_LOGD("[ERROR] Parameter is invalid, appid(%s)", appid);
+               MWR_LOGD("[ERROR] Parameter is NULL");
        } else {
                appid_string = appid;
        }
@@ -362,7 +362,7 @@ int wakeup_manager_update_recognition_result(const char* appid, int result)
 
        string appid_string;
        if (NULL == appid) {
-               MWR_LOGD("[ERROR] Parameter is invalid, appid(%s)", appid);
+               MWR_LOGD("[ERROR] Parameter is NULL");
        } else {
                appid_string = appid;
        }