diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-08-05 14:01:31 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-08-05 15:16:58 +0100 |
commit | 8dec72aeb54e98643c0fb3d53768cdb96cf1342a (patch) | |
tree | 1c12b23e80f0c1b273518eb4d60ce6e5ec3e1f87 /libgcc | |
parent | 03d47da7e1e91adddbde261ffefd2760df59a564 (diff) | |
download | gcc-8dec72aeb54e98643c0fb3d53768cdb96cf1342a.zip gcc-8dec72aeb54e98643c0fb3d53768cdb96cf1342a.tar.gz gcc-8dec72aeb54e98643c0fb3d53768cdb96cf1342a.tar.bz2 |
libstdc++: Add [[nodiscard]] to <compare>
This adds the [[nodiscard]] attribute to all conversion operators,
comparison operators, call operators and non-member functions in
<compare>. Nothing in this header except constructors has side effects.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* libsupc++/compare (partial_ordering, weak_ordering)
(strong_ordering, is_eq, is_neq, is_lt, is_lteq, is_gt, is_gteq)
(compare_three_way, strong_order, weak_order, partial_order)
(compare_strong_order_fallback, compare_weak_order_fallback)
(compare_partial_order_fallback, __detail::__synth3way): Add
nodiscard attribute.
* testsuite/18_support/comparisons/categories/zero_neg.cc: Add
-Wno-unused-result to options.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions