diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-05-22 18:38:36 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-05-22 23:11:32 +0100 |
commit | fd1a674ff5f37e74fbbdcdb85d78399e963eb401 (patch) | |
tree | 01a64784b4b2b6ffe7b068975aba343dae2294b9 /gcc | |
parent | 947a9c801e818f412ad4c669a49297c3512b3a6e (diff) | |
download | gcc-fd1a674ff5f37e74fbbdcdb85d78399e963eb401.zip gcc-fd1a674ff5f37e74fbbdcdb85d78399e963eb401.tar.gz gcc-fd1a674ff5f37e74fbbdcdb85d78399e963eb401.tar.bz2 |
libstdc++: Add [[nodiscard]] to some std::locale functions
libstdc++-v3/ChangeLog:
* include/bits/locale_classes.h (locale::combine)
(locale::name, locale::operator==, locale::operator!=)
(locale::operator(), locale::classic): Add nodiscard
attribute.
* include/bits/locale_classes.tcc (has_facet, use_facet):
Likewise.
* testsuite/22_locale/locale/cons/12438.cc: Add dg-warning for
nodiscard diagnostic.
* testsuite/22_locale/locale/cons/2.cc: Cast use_facet
expression to void, to suppress diagnostic.
* testsuite/22_locale/locale/cons/unicode.cc: Likewise.
* testsuite/22_locale/locale/operations/2.cc: Add dg-warning.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions