diff options
| author | Martin Storsjo <martin@martin.st> | 2019-01-22 22:12:23 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2019-01-22 22:12:23 +0000 |
| commit | 0b120ac0f95887bc81d9fee9beeda1addca009a3 (patch) | |
| tree | 5f22d1b76f9353be9be16148c9547690d1e7708a /src/Unwind-seh.cpp | |
| parent | 50a394d4a0ff90203476d5494b3fc3bf7461dc0d (diff) | |
| download | platform_external_libunwind_llvm-0b120ac0f95887bc81d9fee9beeda1addca009a3.tar.gz platform_external_libunwind_llvm-0b120ac0f95887bc81d9fee9beeda1addca009a3.tar.bz2 platform_external_libunwind_llvm-0b120ac0f95887bc81d9fee9beeda1addca009a3.zip | |
Silence warnings about unused parameters
Differential Revision: https://reviews.llvm.org/D56984
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@351888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/Unwind-seh.cpp')
| -rw-r--r-- | src/Unwind-seh.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Unwind-seh.cpp b/src/Unwind-seh.cpp index e5bc278..f55d624 100644 --- a/src/Unwind-seh.cpp +++ b/src/Unwind-seh.cpp @@ -52,6 +52,7 @@ static const uint64_t kSEHExceptionClass = 0x434C4E4753454800; // CLNGSEH\0 /// Exception cleanup routine used by \c _GCC_specific_handler to /// free foreign exceptions. static void seh_exc_cleanup(_Unwind_Reason_Code urc, _Unwind_Exception *exc) { + (void)urc; if (exc->exception_class != kSEHExceptionClass) _LIBUNWIND_ABORT("SEH cleanup called on non-SEH exception"); free(exc); @@ -210,6 +211,8 @@ extern "C" _Unwind_Reason_Code __libunwind_seh_personality(int version, _Unwind_Action state, uint64_t klass, _Unwind_Exception *exc, struct _Unwind_Context *context) { + (void)version; + (void)klass; EXCEPTION_RECORD ms_exc; bool phase2 = (state & (_UA_SEARCH_PHASE|_UA_CLEANUP_PHASE)) == _UA_CLEANUP_PHASE; ms_exc.ExceptionCode = STATUS_GCC_THROW; |
