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
This commit is contained in:
François Dumont 2019-09-01 20:11:42 +00:00
parent 3791ba494b
commit a37ab089c2
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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();
}