Fixed the build error using gcc 13 sandbox/playchang/riscv64
authorwchang kim <wchang.kim@samsung.com>
Thu, 20 Jul 2023 05:22:41 +0000 (14:22 +0900)
committerwchang kim <wchang.kim@samsung.com>
Thu, 20 Jul 2023 05:22:41 +0000 (14:22 +0900)
src/callhistory/callhistory.cc
src/common/common.gypi
src/common/converter.h
src/metadata/metadata_file_handle.h

index 9b610577216d201794e55cbda5d14f88a9ff4203..b863ee5c456dd221d9dcb0284306a15f26130687 100644 (file)
@@ -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() {
index 68ca831c3aa6f963641a43911e0d6f481d033c63..21cf6f3408e955e32a9b1c54688cad5009cf4208 100644 (file)
@@ -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',
index db0955d16b0a830ca7514c11bdabad48463b8454..602307a4584cfc8588fcb4401f1570a73af9df7c 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "common/picojson.h"
 #include "common/platform_exception.h"
+#include <cstdint>
 
 namespace common {
 
index f0136b04957183adb7dc38bf30543f90e2c69ebd..efe39283f61c45be3b4411ff0180b508a7901fd0 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <metadata_extractor.h>
 #include <string>
+#include <cstdint>
 
 #include "common/picojson.h"
 #include "common/platform_result.h"