From a37ab089c22f8be834bb1b5fd4c0454224db9b0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Dumont?= Date: Sun, 1 Sep 2019 20:11:42 +0000 Subject: [PATCH] =?utf8?q?2019-09-01=20=20Fran=C3=A7ois=20Dumont=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * testsuite_files/util/testsuite_performance.h (resource_counter::start): Ignore unused malloc(0) result. From-SVN: r275284 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/util/testsuite_performance.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9156e3b1bf0..a3d3884665b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-09-01 François Dumont + + * testsuite_files/util/testsuite_performance.h + (resource_counter::start): Ignore unused malloc(0) result. + 2019-09-01 Gerald Pfeifer * doc/xml/manual/policy_data_structures_biblio.xml (COM: Component diff --git a/libstdc++-v3/testsuite/util/testsuite_performance.h b/libstdc++-v3/testsuite/util/testsuite_performance.h index fd163914d99..086dcc7ada4 100644 --- a/libstdc++-v3/testsuite/util/testsuite_performance.h +++ b/libstdc++-v3/testsuite/util/testsuite_performance.h @@ -167,7 +167,7 @@ namespace __gnu_test { if (getrusage(who, &rusage_begin) != 0 ) memset(&rusage_begin, 0, sizeof(rusage_begin)); - malloc(0); // Needed for some implementations. + void* p __attribute__((unused)) = malloc(0); // Needed for some implementations. allocation_begin = mallinfo(); } -- 2.30.2