[libcxx-commits] [libcxxabi] ecb68f1 - [libc++abi] NFC: avoid a -Wunused-parameter warning
Xing Xue via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 14 13:06:22 PDT 2021
Author: Xing Xue
Date: 2021-06-14T16:04:02-04:00
New Revision: ecb68f1c8b11b54dc8c48af9f5fe28c261090aba
URL: https://github.com/llvm/llvm-project/commit/ecb68f1c8b11b54dc8c48af9f5fe28c261090aba
DIFF: https://github.com/llvm/llvm-project/commit/ecb68f1c8b11b54dc8c48af9f5fe28c261090aba.diff
LOG: [libc++abi] NFC: avoid a -Wunused-parameter warning
Summary:
A -Wunused-parameter warning was introduced by patch rG7f0244afa828 [libc++abi] NFC: adding a new parameter base to functions for calculating… (authored by xingxue). The unused parameter base will be used in a follow-on patch D101298. This patch is to avoid the warning before D101298 is landed.
Reviewers: ldionne, sfertile, compnerd, libc++abi
Reviewed by: ldionne
Differential Revision: https://reviews.llvm.org/D104235
Added:
Modified:
libcxxabi/src/cxa_personality.cpp
Removed:
################################################################################
diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp
index 1a656f2229edf..7f91951ed734d 100644
--- a/libcxxabi/src/cxa_personality.cpp
+++ b/libcxxabi/src/cxa_personality.cpp
@@ -245,7 +245,7 @@ readSLEB128(const uint8_t** data)
/// @returns decoded value
static
uintptr_t
-readEncodedPointer(const uint8_t** data, uint8_t encoding, uintptr_t base = 0)
+readEncodedPointer(const uint8_t** data, uint8_t encoding, uintptr_t /*base*/ = 0)
{
uintptr_t result = 0;
if (encoding == DW_EH_PE_omit)
More information about the libcxx-commits
mailing list