This is an archive of the discontinued LLVM Phabricator instance.

Fix warnings.
ClosedPublic

Authored by brucem on Jul 21 2015, 8:26 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

brucem updated this revision to Diff 30315.Jul 21 2015, 8:26 PM
brucem retitled this revision from to Fix warnings..
brucem updated this object.
brucem added a reviewer: clayborg.
brucem added a subscriber: lldb-commits.
clayborg accepted this revision.Jul 22 2015, 10:19 AM
clayborg edited edge metadata.

Looks fine.

This revision is now accepted and ready to land.Jul 22 2015, 10:19 AM

You might want to put comments on your "(void)unused_variable;" lines to let people know it is there to make sure that we don't get unused variable warnings so people know not to take them out. It might be a good idea to make a macro that would make this more clear. Maybe something in lldb-defines.h like:

#define UNUSED_IF_ASSERT_DISABLED(x) ((void)(x))

This revision was automatically updated to reflect the committed changes.

I saw your comment after I had done the merge and was doing the build + push. I'll revisit this soon with a comprehensive way to address this.