From 83bb5e9d27b7fdc6a517f5076cda4e38aaa2387d Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 23 Feb 2024 11:51:27 +0100 Subject: [PATCH] StorageAPI: Avoid -Wunused-parameter --- include/wups/storage.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/wups/storage.h b/include/wups/storage.h index 830f4bd..de86ea3 100644 --- a/include/wups/storage.h +++ b/include/wups/storage.h @@ -894,7 +894,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, int32_t &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, int32_t &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetS32(parent, key.data(), &outValue); } @@ -912,7 +912,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, int64_t &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, int64_t &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetS64(parent, key.data(), &outValue); } @@ -930,7 +930,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, uint32_t &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, uint32_t &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetU32(parent, key.data(), &outValue); } @@ -948,7 +948,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, uint64_t &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, uint64_t &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetU64(parent, key.data(), &outValue); } @@ -966,7 +966,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, bool &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, bool &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetBool(parent, key.data(), &outValue); } @@ -984,7 +984,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, float &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, float &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetFloat(parent, key.data(), &outValue); } @@ -1002,7 +1002,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template<> - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, double &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, double &outValue, GetOptions /* options */) noexcept { return WUPSStorageAPI_GetDouble(parent, key.data(), &outValue); } @@ -1025,7 +1025,7 @@ namespace WUPSStorageAPI { * \see WUPSStorageAPI_GetItem */ template - inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, T &outValue, GetOptions options) noexcept { + inline WUPSStorageError GetEx(wups_storage_item parent, std::string_view key, T &outValue, GetOptions /* options */) noexcept { static_assert(sizeof(T) == sizeof(uint32_t) && std::is_enum::value, "T must be an enum of size sizeof(uint32_t)"); return WUPSStorageAPI_GetU32(parent, key.data(), (uint32_t *) &outValue); }