diff --git a/libunwind/src/Unwind-EHABI.cpp b/libunwind/src/Unwind-EHABI.cpp --- a/libunwind/src/Unwind-EHABI.cpp +++ b/libunwind/src/Unwind-EHABI.cpp @@ -885,8 +885,10 @@ return result; } +#ifndef NDEBUG +// Only used in _LIBUNWIND_TRACE_API static uint64_t ValueAsBitPattern(_Unwind_VRS_DataRepresentation representation, - void* valuep) { + const void* valuep) { uint64_t value = 0; switch (representation) { case _UVRSD_UINT32: @@ -902,6 +904,7 @@ } return value; } +#endif _LIBUNWIND_EXPORT _Unwind_VRS_Result _Unwind_VRS_Set(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,