diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-03-04 10:43:29 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-03-04 10:43:29 +0000 |
commit | 289f65d643e18210433e0f08ccaaf5b08b3d6f39 (patch) | |
tree | 47c62e9e10ae74175f8f1b3271350f76fad0a1c1 /libstdc++-v3 | |
parent | 49bc9c6c1ef9441c3db586882e1985da3be9cfa1 (diff) | |
download | gcc-289f65d643e18210433e0f08ccaaf5b08b3d6f39.zip gcc-289f65d643e18210433e0f08ccaaf5b08b3d6f39.tar.gz gcc-289f65d643e18210433e0f08ccaaf5b08b3d6f39.tar.bz2 |
libstdc++: Fix -Wunused-local-typedefs warning in <compare>
libstdc++-v3/ChangeLog:
* libsupc++/compare (strong_order::_S_fp_cmp): Move typedef
inside #if condition.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/libsupc++/compare | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/libsupc++/compare b/libstdc++-v3/libsupc++/compare index a874720..050cf7e 100644 --- a/libstdc++-v3/libsupc++/compare +++ b/libstdc++-v3/libsupc++/compare @@ -850,8 +850,6 @@ namespace std return strong_ordering::equal; // All bits are equal, we're done. using enum _Fp_fmt; - using _Int = decltype(__ix); - constexpr auto __fmt = _S_fp_fmt<_Tp>(); if constexpr (__fmt == _Dbldbl) // double-double @@ -899,6 +897,8 @@ namespace std // bit to be reversed. Flip that to give desired ordering. if (__builtin_isnan(__x) && __builtin_isnan(__y)) { + using _Int = decltype(__ix); + constexpr int __nantype = __fmt == _Binary32 ? 22 : __fmt == _Binary64 ? 51 : __fmt == _Binary128 ? 111 |