From: François Dumont Date: Sun, 1 Sep 2019 20:11:42 +0000 (+0000) Subject: 2019-09-01 François Dumont X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a37ab089c22f8be834bb1b5fd4c0454224db9b0f;p=gcc.git 2019-09-01 François Dumont * testsuite_files/util/testsuite_performance.h (resource_counter::start): Ignore unused malloc(0) result. From-SVN: r275284 --- 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(); }