From: Mikael Holmen Date: Tue, 25 Aug 2020 10:26:48 +0000 (+0200) Subject: [libunwind] Fix warning when building without frameheader cache X-Git-Tag: llvmorg-13-init~13826 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c39ffecd84a5eba54f5fabb433b0192d1dbd3b4;p=platform%2Fupstream%2Fllvm.git [libunwind] Fix warning when building without frameheader cache Without the fix the compiler warns with /data/repo/master/libunwind/src/AddressSpace.hpp:436:44: warning: unused parameter 'pinfo_size' [-Wunused-parameter] size_t pinfo_size, void *data) { ^ 1 warning generated. --- diff --git a/libunwind/src/AddressSpace.hpp b/libunwind/src/AddressSpace.hpp index b3949b2..717aa33 100644 --- a/libunwind/src/AddressSpace.hpp +++ b/libunwind/src/AddressSpace.hpp @@ -440,6 +440,9 @@ static int findUnwindSectionsByPhdr(struct dl_phdr_info *pinfo, #if defined(_LIBUNWIND_USE_FRAME_HEADER_CACHE) if (ProcessFrameHeaderCache.find(pinfo, pinfo_size, data)) return 1; +#else + // Avoid warning about unused variable. + (void)pinfo_size; #endif Elf_Addr image_base = calculateImageBase(pinfo);