erpt: use the AMS_UNUSED macro
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user