[compiler-rt] 98ebdd0 - [NFC][sanitizer] Fix `unused variable 'RegName'` warning
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 18:39:17 PDT 2024
Author: Vitaly Buka
Date: 2024-07-18T18:39:12-07:00
New Revision: 98ebdd0ca9a72c072a1dbe1af2fa7f1adcbb09ae
URL: https://github.com/llvm/llvm-project/commit/98ebdd0ca9a72c072a1dbe1af2fa7f1adcbb09ae
DIFF: https://github.com/llvm/llvm-project/commit/98ebdd0ca9a72c072a1dbe1af2fa7f1adcbb09ae.diff
LOG: [NFC][sanitizer] Fix `unused variable 'RegName'` warning
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index aa74a4c581dd0..47f9f0c4590fb 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -2186,6 +2186,8 @@ static void DumpSingleReg(ucontext_t *ctx, int RegNum) {
RegName, ctx->uc_mcontext.gregs[RegNum]);
# elif defined(__i386__)
Printf("%s = 0x%08x ", RegName, ctx->uc_mcontext.gregs[RegNum]);
+# else
+ (void)RegName;
# endif
}
More information about the llvm-commits
mailing list