Fix -Wreorder warnings (#1583)

Initialize class members in the order they are declared.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2022-12-13 17:49:38 +00:00
committed by GitHub
parent a25b9c4948
commit f48dd72da8
3 changed files with 20 additions and 17 deletions

View File

@@ -41,8 +41,8 @@ struct BasicCommandBufferTest : CommandBufferTestBase
BasicCommandBufferTest(cl_device_id device, cl_context context,
cl_command_queue queue)
: CommandBufferTestBase(device), context(context), queue(queue),
command_buffer(this), simultaneous_use(false),
out_of_order_support(false), num_elements(0)
command_buffer(this), num_elements(0), simultaneous_use(false),
out_of_order_support(false)
{}
virtual bool Skip()
@@ -442,7 +442,7 @@ struct OutOfOrderTest : public BasicCommandBufferTest
OutOfOrderTest(cl_device_id device, cl_context context,
cl_command_queue queue)
: BasicCommandBufferTest(device, context, queue),
out_of_order_command_buffer(this), out_of_order_queue(nullptr),
out_of_order_queue(nullptr), out_of_order_command_buffer(this),
event(nullptr)
{}