diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-10-07 10:19:29 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-10-09 13:41:06 +0100 |
commit | e998014d1b14592c43b0f655793011c6395ff02a (patch) | |
tree | 2153386de2b672f6827512d515e4f61bb47310c7 /gcc | |
parent | f5021ce9aa6be524beca99e0bbd0180b4e53029b (diff) | |
download | gcc-e998014d1b14592c43b0f655793011c6395ff02a.zip gcc-e998014d1b14592c43b0f655793011c6395ff02a.tar.gz gcc-e998014d1b14592c43b0f655793011c6395ff02a.tar.bz2 |
libstdc++: Fix -Wnarrowing in <complex> [PR116991]
When _GLIBCXX_USE_C99_COMPLEX_ARC is undefined we use the generic
__complex_acos function template for _Float32 etc. and that gives a
-Wnarrowing warning:
complex:2043: warning: ISO C++ does not allow converting to '_Float32' from 'long double' with greater conversion rank [-Wnarrowing]
Use a cast to do the conversion so that it doesn't warn.
libstdc++-v3/ChangeLog:
PR libstdc++/116991
* include/std/complex (__complex_acos): Cast literal to
destination type.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions