mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
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
This commit is contained in:
parent
53a990579b
commit
81a49bffee
@ -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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user