This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Silence warnings about unused parameters
ClosedPublic

Authored by mstorsjo on Jan 20 2019, 1:36 PM.

Diff Detail

Event Timeline

mstorsjo created this revision.Jan 20 2019, 1:36 PM
ldionne accepted this revision.Jan 22 2019, 6:59 AM

LGTM, but would it make sense to have a macro like _LIBUNWIND_MAYBE_UNUSED(var) instead?

This revision is now accepted and ready to land.Jan 22 2019, 6:59 AM

LGTM, but would it make sense to have a macro like _LIBUNWIND_MAYBE_UNUSED(var) instead?

I guess some macro like that could be ok as well, although I think the (void)var is a rather well-known pattern in itself.

This revision was automatically updated to reflect the committed changes.