]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix -Wnonnull warnings during configure
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 May 2023 11:17:08 +0000 (12:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 12 May 2023 16:47:17 +0000 (17:47 +0100)
commit6190a74ebee69415b501996821c92f60d892fb81
treefd06fb3f2d1b7ef1fee107db0cb1766b15be2b69
parent1f973c295b699011acd7d5fcb04bd2bf887da16d
libstdc++: Fix -Wnonnull warnings during configure

We should not test for nan by passing it a null pointer, as this can
trigger -Wnonnull warnings.

Also fix an outdated comment about the default -std mode.

libstdc++-v3/ChangeLog:

* acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
to check for nan, nanf, and nanl.
* configure: Regenerate.
libstdc++-v3/acinclude.m4
libstdc++-v3/configure