This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add missing [[maybe_unused]] attribute in format tests
ClosedPublic

Authored by ldionne on Jun 19 2023, 11:40 AM.

Details

Summary

Otherwise, Clang complains about format_ctx being unused in the tests
when exceptions are disabled in Freestanding mode. I don't know why it
doesn't complain not in freestanding mode.

Diff Detail

Event Timeline

ldionne created this revision.Jun 19 2023, 11:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2023, 11:40 AM
ldionne requested review of this revision.Jun 19 2023, 11:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2023, 11:40 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Jun 20 2023, 8:06 AM
Mordante added a subscriber: Mordante.

LGTM!

This revision is now accepted and ready to land.Jun 20 2023, 8:06 AM