mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
libstrat: misc fixes for unused arg warnings
This commit is contained in:
parent
e975784179
commit
fa98bf9434
3 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,8 @@ namespace ams::fssrv::impl {
|
||||||
|
|
||||||
bool Contains(const void *key, size_t key_size) const {
|
bool Contains(const void *key, size_t key_size) const {
|
||||||
AMS_ASSERT(key_size == sizeof(spl::AccessKey));
|
AMS_ASSERT(key_size == sizeof(spl::AccessKey));
|
||||||
|
AMS_UNUSED(key_size);
|
||||||
|
|
||||||
return crypto::IsSameBytes(std::addressof(m_access_key), key, sizeof(m_access_key));
|
return crypto::IsSameBytes(std::addressof(m_access_key), key, sizeof(m_access_key));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@ namespace ams::gc::impl {
|
||||||
static void SetLibraryTitleKeyKek(size_t kek_index, const void *kek, size_t kek_size) {
|
static void SetLibraryTitleKeyKek(size_t kek_index, const void *kek, size_t kek_size) {
|
||||||
AMS_ASSERT(kek_index < GcCrypto::GcTitleKeyKekIndexMax);
|
AMS_ASSERT(kek_index < GcCrypto::GcTitleKeyKekIndexMax);
|
||||||
AMS_ASSERT(kek_size == GcCrypto::GcAesKeyLength);
|
AMS_ASSERT(kek_size == GcCrypto::GcAesKeyLength);
|
||||||
|
AMS_UNUSED(kek_size);
|
||||||
|
|
||||||
std::memcpy(s_titlekey_keks[kek_index], kek, sizeof(s_titlekey_keks[kek_index]));
|
std::memcpy(s_titlekey_keks[kek_index], kek, sizeof(s_titlekey_keks[kek_index]));
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ namespace ams::ncm {
|
||||||
u8 *GetBuffer(size_t o, size_t sz) const {
|
u8 *GetBuffer(size_t o, size_t sz) const {
|
||||||
AMS_ASSERT(this->buffer != nullptr);
|
AMS_ASSERT(this->buffer != nullptr);
|
||||||
AMS_ASSERT(this->IsIncluded(o, sz));
|
AMS_ASSERT(this->IsIncluded(o, sz));
|
||||||
|
AMS_UNUSED(sz);
|
||||||
|
|
||||||
return this->buffer + (o - this->offset);
|
return this->buffer + (o - this->offset);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue