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) {} }; }