erpt: use the AMS_UNUSED macro

This commit is contained in:
hexkyz
2026-09-17 00:28:26 +01:00
parent 092f451c33
commit afff8cbf16
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ namespace ams::erpt::srv {
util::Strlcpy(name_safe, name, sizeof(name_safe)); util::Strlcpy(name_safe, name, sizeof(name_safe));
/* NOTE: This is tested, but goes unused and is never passed to JournalForAttachments. */ /* 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)); R_RETURN(JournalForAttachments::SubmitAttachment(out.GetPointer(), name_safe, data, data_size, lz4_compression));
} }

View File

@@ -188,7 +188,7 @@ namespace ams::erpt::srv {
Result JournalForAttachments::SubmitAttachment(AttachmentId *out, char *name, const u8 *data, u32 data_size, bool lz4_compression) { Result JournalForAttachments::SubmitAttachment(AttachmentId *out, char *name, const u8 *data, u32 data_size, bool lz4_compression) {
/* TODO: Implement LZ4 compression on attachments. */ /* TODO: Implement LZ4 compression on attachments. */
(void)lz4_compression; AMS_UNUSED(lz4_compression);
R_UNLESS(data_size > 0, erpt::ResultInvalidArgument()); R_UNLESS(data_size > 0, erpt::ResultInvalidArgument());
R_UNLESS(data_size < AttachmentSizeMax, erpt::ResultInvalidArgument()); R_UNLESS(data_size < AttachmentSizeMax, erpt::ResultInvalidArgument());