From 3213f33e1a6990046c295ef27e0984d54d30c885 Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Thu, 3 Sep 2015 12:01:13 -0700 Subject: [PATCH] Fix warnings about Get/SetPc functions --- src/pal/src/exception/seh-unwind.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.7.4