From 1239245f575f7bb214dcf2476ba0e19ba6fde789 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 9 May 2016 11:57:55 +0200 Subject: [PATCH] Botan: Add missing noexcept specification. Change-Id: I0f40b31e54cfe26703256114c3c0409a28b47160 Reviewed-by: Tobias Hunger --- src/libs/3rdparty/botan/botan.cpp | 4 ++-- src/libs/3rdparty/botan/botan.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/3rdparty/botan/botan.cpp b/src/libs/3rdparty/botan/botan.cpp index e6a5f228d98..88347697397 100644 --- a/src/libs/3rdparty/botan/botan.cpp +++ b/src/libs/3rdparty/botan/botan.cpp @@ -379,7 +379,7 @@ class Mutex * Unlock the mutex */ virtual void unlock() = 0; - virtual ~Mutex() {} + virtual ~Mutex() noexcept(false) {} }; /** @@ -3296,7 +3296,7 @@ void* MemoryMapping_Allocator::alloc_block(size_t n) throw MemoryMapping_Failed("Could not unlink temporary file"); } - ~TemporaryFile() + ~TemporaryFile() noexcept(false) { /* * We can safely close here, because post-mmap the file diff --git a/src/libs/3rdparty/botan/botan.h b/src/libs/3rdparty/botan/botan.h index 2caa4a352db..9a51b80d13a 100644 --- a/src/libs/3rdparty/botan/botan.h +++ b/src/libs/3rdparty/botan/botan.h @@ -390,7 +390,7 @@ class BOTAN_DLL Allocator */ virtual void destroy() {} - virtual ~Allocator() {} + virtual ~Allocator() noexcept(false) {} }; }