Skip to content

Commit 7fec967

Browse files
vitalybukayuxuanchen1997
authored andcommitted
[NFC][sanitizer] Fix unused variable 'RegName' warning
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250803
1 parent bb90a36 commit 7fec967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,6 +2186,8 @@ static void DumpSingleReg(ucontext_t *ctx, int RegNum) {
21862186
RegName, ctx->uc_mcontext.gregs[RegNum]);
21872187
# elif defined(__i386__)
21882188
Printf("%s = 0x%08x ", RegName, ctx->uc_mcontext.gregs[RegNum]);
2189+
# else
2190+
(void)RegName;
21892191
# endif
21902192
}
21912193

0 commit comments

Comments
 (0)