diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-08-16 17:56:40 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-08-16 17:56:40 +0100 |
commit | 450f33d6ba630730e86ebabb361651e00ac7741f (patch) | |
tree | 6f6471a3b412d5d2cc963398aa6d663eadd91047 /libcpp/internal.h | |
parent | bfbc18affacd44ba861f66dda222e2884c021874 (diff) | |
download | gcc-450f33d6ba630730e86ebabb361651e00ac7741f.zip gcc-450f33d6ba630730e86ebabb361651e00ac7741f.tar.gz gcc-450f33d6ba630730e86ebabb361651e00ac7741f.tar.bz2 |
Avoid deprecation warning with -Wsystem-headers
C++17 says to use std::uncaught_exceptions() here instead of
std::uncaught_exception() but since we only care whether the result is
non-zero (and we aren't planning to remove the deprecated version) we
can just keep using std::uncaught_exception() and suppress the warning.
* include/std/ostream (basic_ostream::sentry::~sentry): Suppress
deprecation warnings for using uncaught_exception().
From-SVN: r263593
Diffstat (limited to 'libcpp/internal.h')
0 files changed, 0 insertions, 0 deletions