From: Aditya Mandaleeka Date: Thu, 3 Sep 2015 19:01:13 +0000 (-0700) Subject: Fix warnings about Get/SetPc functions X-Git-Tag: accepted/tizen/base/20180629.140029~6443^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3213f33e1a6990046c295ef27e0984d54d30c885;p=platform%2Fupstream%2Fcoreclr.git Fix warnings about Get/SetPc functions --- diff --git a/src/pal/src/exception/seh-unwind.cpp b/src/pal/src/exception/seh-unwind.cpp index 413c6ef..23a05b4 100644 --- a/src/pal/src/exception/seh-unwind.cpp +++ b/src/pal/src/exception/seh-unwind.cpp @@ -199,6 +199,8 @@ static void GetContextPointers(unw_cursor_t *cursor, unw_context_t *unwContext, #endif } +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_ARM64_) + static DWORD64 GetPc(CONTEXT *context) { #if defined(_AMD64_) @@ -221,6 +223,8 @@ static void SetPc(CONTEXT *context, DWORD64 pc) #endif } +#endif // defined(__APPLE__) || defined(__FreeBSD__) || defined(_ARM64_) + BOOL PAL_VirtualUnwind(CONTEXT *context, KNONVOLATILE_CONTEXT_POINTERS *contextPointers) { int st;