Skip to content

Commit

Permalink
libstdc++: Fix test failure due to -Wnonnull warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jwakely committed Mar 12, 2020
1 parent 54f46d8 commit fcc443b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2020-03-12 Jonathan Wakely <[email protected]>

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

2020-03-11 Patrick Palka <[email protected]>

* include/std/ranges (split_view::_OuterIter::_OuterIter): Typo fix,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void test01()
#if _GLIBCXX_USE_C99_STDLIB

long long i = 0;
const char* s = 0;
const char* s = "";
char** endptr = 0;
int base = 0;

Expand Down

0 comments on commit fcc443b

Please sign in to comment.