From afff8cbf16c4e737d19b439d4e194e38490548ed Mon Sep 17 00:00:00 2001 From: hexkyz Date: Thu, 17 Sep 2026 00:28:26 +0100 Subject: [PATCH] erpt: use the AMS_UNUSED macro --- .../libstratosphere/source/erpt/srv/erpt_srv_context_impl.cpp | 2 +- .../source/erpt/srv/erpt_srv_journal_for_attachments.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libstratosphere/source/erpt/srv/erpt_srv_context_impl.cpp b/libraries/libstratosphere/source/erpt/srv/erpt_srv_context_impl.cpp index 3f57c4c4e..43d32e9b5 100644 --- a/libraries/libstratosphere/source/erpt/srv/erpt_srv_context_impl.cpp +++ b/libraries/libstratosphere/source/erpt/srv/erpt_srv_context_impl.cpp @@ -90,7 +90,7 @@ namespace ams::erpt::srv { util::Strlcpy(name_safe, name, sizeof(name_safe)); /* NOTE: This is tested, but goes unused and is never passed to JournalForAttachments. */ - (void)unk; + AMS_UNUSED(unk); R_RETURN(JournalForAttachments::SubmitAttachment(out.GetPointer(), name_safe, data, data_size, lz4_compression)); } diff --git a/libraries/libstratosphere/source/erpt/srv/erpt_srv_journal_for_attachments.cpp b/libraries/libstratosphere/source/erpt/srv/erpt_srv_journal_for_attachments.cpp index 36cfe98c6..762d15e3f 100644 --- a/libraries/libstratosphere/source/erpt/srv/erpt_srv_journal_for_attachments.cpp +++ b/libraries/libstratosphere/source/erpt/srv/erpt_srv_journal_for_attachments.cpp @@ -188,7 +188,7 @@ namespace ams::erpt::srv { Result JournalForAttachments::SubmitAttachment(AttachmentId *out, char *name, const u8 *data, u32 data_size, bool lz4_compression) { /* TODO: Implement LZ4 compression on attachments. */ - (void)lz4_compression; + AMS_UNUSED(lz4_compression); R_UNLESS(data_size > 0, erpt::ResultInvalidArgument()); R_UNLESS(data_size < AttachmentSizeMax, erpt::ResultInvalidArgument());