mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
libstdc++: use updated type for __unexpected_handler
Commit f4130a3eb5
changed the type of
__expected_handler in libsupc++/unwind-cxx.h to be a
std::terminate_handler to avoid a deprecated warning. However, the
definition in eh_unex_handler.cc still used the old type
(std::unexpected_handler) and thus causes a warning when compiling
libstdc++ with -Wdeprecated-declarations (which is the default, for
example, for clang).
Adapt the definition to match the declaration.
libstdc++-v3/ChangeLog:
* libsupc++/eh_unex_handler.cc: Adjust definition type to
declaration.
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
This commit is contained in:
parent
adbc46942a
commit
a7dea405d5
@ -25,5 +25,5 @@
|
||||
#include "unwind-cxx.h"
|
||||
|
||||
/* The current installed user handler. */
|
||||
std::unexpected_handler __cxxabiv1::__unexpected_handler = std::terminate;
|
||||
std::terminate_handler __cxxabiv1::__unexpected_handler = std::terminate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user