From: wchang kim Date: Thu, 20 Jul 2023 05:22:41 +0000 (+0900) Subject: Fixed the build error using gcc 13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53da31f838552746d6b2ba2fdd180ced41bce8d6;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git Fixed the build error using gcc 13 --- diff --git a/src/callhistory/callhistory.cc b/src/callhistory/callhistory.cc index 9b61057..b863ee5 100644 --- a/src/callhistory/callhistory.cc +++ b/src/callhistory/callhistory.cc @@ -485,7 +485,7 @@ void CallHistory::removeAll(const picojson::object& args) { } CallHistory::LockedVector CallHistory::getPhoneNumbers() { - return std::move(CallHistory::LockedVector{m_phone_numbers, m_phone_numbers_mutex}); + return CallHistory::LockedVector{m_phone_numbers, m_phone_numbers_mutex}; } CallHistoryUtils& CallHistory::getUtils() { diff --git a/src/common/common.gypi b/src/common/common.gypi index 68ca831..21cf6f3 100644 --- a/src/common/common.gypi +++ b/src/common/common.gypi @@ -84,7 +84,8 @@ '-Wall', '-Werror', '-Wformat-signedness', - '-Wno-psabi' # suppress messages about ABI changes in GCC 7.1 + '-Wno-psabi', # suppress messages about ABI changes in GCC 7.1 + '-Wno-range-loop-construct' # gcc 13 ], 'cflags_c': [ '-std=c11', diff --git a/src/common/converter.h b/src/common/converter.h index db0955d..602307a 100644 --- a/src/common/converter.h +++ b/src/common/converter.h @@ -19,6 +19,7 @@ #include "common/picojson.h" #include "common/platform_exception.h" +#include namespace common { diff --git a/src/metadata/metadata_file_handle.h b/src/metadata/metadata_file_handle.h index f0136b0..efe3928 100644 --- a/src/metadata/metadata_file_handle.h +++ b/src/metadata/metadata_file_handle.h @@ -19,6 +19,7 @@ #include #include +#include #include "common/picojson.h" #include "common/platform_result.h"