libstdc++: Fix test failure due to -Wnonnull warnings
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Mar 2020 11:03:04 +0000 (11:03 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 12 Mar 2020 11:03:04 +0000 (11:03 +0000)
commitfcc443b97e19d9c8a2d8ccdfa4cc20682165827e
treec39ea65bd5f7c6121af9b2c725837e43717c3dc5
parent54f46d82f54ba7a4110cef102b7c18eaf8b4b6bd
libstdc++: Fix test failure due to -Wnonnull warnings

This test fails in the Fedora RPM build (but not elsewhere, for unknown
reasons). The warning is correct, we're passing a null pointer.

* testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Do not pass
a null pointer to functions with nonnull(1) attribute.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdlib/functions.cc