Skip to content

Commit 98ebdd0

Browse files
committed
[NFC][sanitizer] Fix unused variable 'RegName' warning
1 parent d4b28fb commit 98ebdd0

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)