diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp --- a/libcxxabi/src/cxa_personality.cpp +++ b/libcxxabi/src/cxa_personality.cpp @@ -247,6 +247,11 @@ uintptr_t readEncodedPointer(const uint8_t** data, uint8_t encoding, uintptr_t base = 0) { + // Parameter 'base' will be used by a follow-on patch. Before that patch + // is landed the following statement is to avoid the -Wunused-parameter + // warning for now. + (void)base; + uintptr_t result = 0; if (encoding == DW_EH_PE_omit) return result;