Avoid deprecation warning with -Wsystem-headers
commitd64ff962bc0d297b351ad7156bfedc025a38726b
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2018 16:56:40 +0000 (16 16:56 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2018 16:56:40 +0000 (16 16:56 +0000)
tree6f6471a3b412d5d2cc963398aa6d663eadd91047
parent2bf45a0ac7d455efef237bc415780028d45c99ec
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().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263593 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/ostream