libstrat: misc fixes for unused arg warnings

This commit is contained in:
Michael Scire 2022-03-22 01:00:39 -07:00 committed by SciresM
parent e975784179
commit fa98bf9434
3 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,8 @@ namespace ams::fssrv::impl {
bool Contains(const void *key, size_t key_size) const {
AMS_ASSERT(key_size == sizeof(spl::AccessKey));
AMS_UNUSED(key_size);
return crypto::IsSameBytes(std::addressof(m_access_key), key, sizeof(m_access_key));
}

View file

@ -48,6 +48,7 @@ namespace ams::gc::impl {
static void SetLibraryTitleKeyKek(size_t kek_index, const void *kek, size_t kek_size) {
AMS_ASSERT(kek_index < GcCrypto::GcTitleKeyKekIndexMax);
AMS_ASSERT(kek_size == GcCrypto::GcAesKeyLength);
AMS_UNUSED(kek_size);
std::memcpy(s_titlekey_keks[kek_index], kek, sizeof(s_titlekey_keks[kek_index]));
}

View file

@ -31,6 +31,7 @@ namespace ams::ncm {
u8 *GetBuffer(size_t o, size_t sz) const {
AMS_ASSERT(this->buffer != nullptr);
AMS_ASSERT(this->IsIncluded(o, sz));
AMS_UNUSED(sz);
return this->buffer + (o - this->offset);
}