diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-01-25 10:22:42 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-01-25 21:05:16 +0000 |
commit | 5c1f274e3e090ee03bedc22dd7169b28e759974e (patch) | |
tree | 91f9c3138e620e19319856eca72d27f466c4fd7e /gcc/builtins.cc | |
parent | e20486d508afdf22790a271e90ca76d8df5fa7a5 (diff) | |
download | gcc-5c1f274e3e090ee03bedc22dd7169b28e759974e.zip gcc-5c1f274e3e090ee03bedc22dd7169b28e759974e.tar.gz gcc-5c1f274e3e090ee03bedc22dd7169b28e759974e.tar.bz2 |
libstdc++: Avoid some more warnings [PR104019]
With -fno-exceptions we get a -Wmisleading-indentation warning for:
if (cond)
__try {}
__catch (...) {}
This is because the __catch(...) expands to if (false), but is indented
as though it is controlled by the preceding 'if'. Surround it in braces.
The new make_shared<T[]> code triggers a bogus warning due to PR 61596,
which can be disabled with a pragma.
libstdc++-v3/ChangeLog:
PR libstdc++/104019
* include/bits/istream.tcc (basic_istream::sentry): Add braces
around try-block.
* include/bits/shared_ptr_base.h (_Sp_counted_array_base::_M_init):
Add pragmas to disable bogus warnings from PR 61596.
Diffstat (limited to 'gcc/builtins.cc')
0 files changed, 0 insertions, 0 deletions