diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-12-02 13:19:41 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-12-09 22:51:06 +0000 |
commit | f8463b0e3ec2438b4cfb8c9a468d59761db2c8a0 (patch) | |
tree | 5db3d5a9cc53c0c94fa3f801ce62966c2c26bd2c /gcc | |
parent | fe9571a35db53e5203326f854f73e432691d67f6 (diff) | |
download | gcc-f8463b0e3ec2438b4cfb8c9a468d59761db2c8a0.zip gcc-f8463b0e3ec2438b4cfb8c9a468d59761db2c8a0.tar.gz gcc-f8463b0e3ec2438b4cfb8c9a468d59761db2c8a0.tar.bz2 |
libstdc++: Disable over-zealous warnings about std::string copies [PR103332]
These warnings are triggered by perfectly valid code using std::string.
They're particularly bad when --enable-fully-dynamic-string is used,
because even std::string().begin() will give a warning.
Use pragmas to stop the troublesome warnings for copies done by
std::char_traits.
libstdc++-v3/ChangeLog:
PR libstdc++/103332
PR libstdc++/102958
PR libstdc++/103483
* include/bits/char_traits.h: Suppress stringop and array-bounds
warnings.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions