From 1a8a33ae9b39567e2a2cc399f13cebecb5fa2dea Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 20 Sep 2021 16:01:22 +0200 Subject: [PATCH] tests: a bit more fancy way to initialized struct Older g++ is not smart enough to figure this out, so add a bit more push. --- test/lib/brick-shelltest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h index b3b62a308..af2810521 100644 --- a/test/lib/brick-shelltest.h +++ b/test/lib/brick-shelltest.h @@ -988,7 +988,7 @@ struct TestCase { TestCase( Journal &j, Options opt, std::string path, std::string _name, std::string _flavour ) : child( path ), name( _name ), flavour( _flavour ), - iobuf( NULL ), usage( { 0 } ), status( 0 ), timeout( false ), + iobuf( NULL ), usage( (struct rusage) { { 0 } } ), status( 0 ), timeout( false ), pid( 0 ), start( 0 ), end( 0 ), silent_start( 0 ), last_update( 0 ), last_heartbeat( 0 ), options( opt ), journal( &j ) {