From 81a49bffeea7c2058bc82e08e3a722d114432f4f Mon Sep 17 00:00:00 2001 From: Piotr Tworek Date: Fri, 28 Aug 2020 00:04:18 +0200 Subject: [PATCH] base: exception specification for operator delete Clang is rather picky about this and prints the following warning when compiling new_delete.cc: error: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Werror,-Wimplicit-exception-spec-mismatch] Issue #3938 --- repos/base/src/lib/cxx/new_delete.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/src/lib/cxx/new_delete.cc b/repos/base/src/lib/cxx/new_delete.cc index 65c2c98c81..65773fa5ff 100644 --- a/repos/base/src/lib/cxx/new_delete.cc +++ b/repos/base/src/lib/cxx/new_delete.cc @@ -67,7 +67,7 @@ void operator delete (void *ptr, Deallocator &dealloc) { try_dealloc(ptr, deall * implementation of the 'stdcxx' library instead. To make this possible, the * 'delete (void *)' implementation in the 'cxx' library must be 'weak'. */ -__attribute__((weak)) void operator delete (void *) +__attribute__((weak)) void operator delete (void *) noexcept { Genode::error("cxx: operator delete (void *) called - not implemented. " "A working implementation is available in the 'stdcxx' library.");