diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2019-09-01 20:11:42 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2019-09-01 20:11:42 +0000 |
commit | a37ab089c22f8be834bb1b5fd4c0454224db9b0f (patch) | |
tree | c8c1c318bc0e6aef031724fea070511f35802132 /libstdc++-v3 | |
parent | 3791ba494b273413751ce9bbd3142121850f7f5a (diff) | |
download | gcc-a37ab089c22f8be834bb1b5fd4c0454224db9b0f.zip gcc-a37ab089c22f8be834bb1b5fd4c0454224db9b0f.tar.gz gcc-a37ab089c22f8be834bb1b5fd4c0454224db9b0f.tar.bz2 |
2019-09-01 François Dumont <fdumont@gcc.gnu.org>
* testsuite_files/util/testsuite_performance.h
(resource_counter::start): Ignore unused malloc(0) result.
From-SVN: r275284
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_performance.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9156e3b..a3d3884 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-09-01 François Dumont <fdumont@gcc.gnu.org> + + * testsuite_files/util/testsuite_performance.h + (resource_counter::start): Ignore unused malloc(0) result. + 2019-09-01 Gerald Pfeifer <gerald@pfeifer.com> * 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 fd16391..086dcc7 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(); } |