From 5526184b99c3cc9c9ec85bb466f0926c08ee6d1d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sat, 9 Oct 2021 12:30:26 +1100 Subject: [PATCH] settings: update KeyValueStore for recent refactoring --- .../source/settings/impl/settings_key_value_store.cpp | 3 +++ .../source/settings/impl/settings_system_save_data.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/libraries/libstratosphere/source/settings/impl/settings_key_value_store.cpp b/libraries/libstratosphere/source/settings/impl/settings_key_value_store.cpp index 2032329ac..9f9b3abb8 100644 --- a/libraries/libstratosphere/source/settings/impl/settings_key_value_store.cpp +++ b/libraries/libstratosphere/source/settings/impl/settings_key_value_store.cpp @@ -214,6 +214,7 @@ namespace ams::settings::impl { ~Allocator() { /* ... */ } pointer allocate(size_type n, const_pointer hint = 0) { + AMS_UNUSED(hint); return static_cast(AllocateFromHeap(sizeof(T) * n)); } @@ -267,6 +268,7 @@ namespace ams::settings::impl { } void FreeToHeap(void *block, size_t size) { + AMS_UNUSED(size); lmem::FreeToExpHeap(*GetHeapHandle(), block); } @@ -582,6 +584,7 @@ namespace ams::settings::impl { /* Load the map entries. */ R_TRY(LoadKeyValueStoreMapEntries(out, data, [](Map &map, const MapKey &key, u8 type, const void *value_buffer, u32 value_size) -> Result { + AMS_UNUSED(type); /* Find the key in the map. */ if (auto it = map.find(key); it != map.end()) { MapValue &map_value = it->second; diff --git a/libraries/libstratosphere/source/settings/impl/settings_system_save_data.cpp b/libraries/libstratosphere/source/settings/impl/settings_system_save_data.cpp index 1b5deadc5..a29b6d301 100644 --- a/libraries/libstratosphere/source/settings/impl/settings_system_save_data.cpp +++ b/libraries/libstratosphere/source/settings/impl/settings_system_save_data.cpp @@ -97,6 +97,7 @@ namespace ams::settings::impl { Result LazyFileAccessor::Commit(const char *name, bool synchronous) { AMS_ASSERT(name != nullptr); + AMS_UNUSED(name); std::scoped_lock lk(m_mutex); AMS_ASSERT(m_is_activated);