mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] Fix -Wmissing-braces warnings (#1643)
The `cl_*` types need two levels of braces for initialization: the outer braces for the union and the inner braces for the array. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
75db137822
commit
dc8ee495bd
@@ -55,7 +55,7 @@ int test_composite_construct(cl_device_id deviceID, cl_context context,
|
||||
|
||||
TEST_SPIRV_FUNC(op_composite_construct_int4)
|
||||
{
|
||||
cl_int4 value = {123, 122, 121, 119};
|
||||
cl_int4 value = { { 123, 122, 121, 119 } };
|
||||
std::vector<cl_int4> results(256, value);
|
||||
return test_composite_construct(deviceID, context, queue, "composite_construct_int4", results);
|
||||
}
|
||||
@@ -66,7 +66,7 @@ TEST_SPIRV_FUNC(op_composite_construct_struct)
|
||||
typedef AbstractStruct2<cl_int2, CustomType1> CustomType2;
|
||||
|
||||
CustomType1 value1 = {2100483600, 128};
|
||||
cl_int2 intvals = {2100480000, 2100480000};
|
||||
cl_int2 intvals = { { 2100480000, 2100480000 } };
|
||||
CustomType2 value2 = {intvals, value1};
|
||||
|
||||
std::vector<CustomType2> results(256, value2);
|
||||
|
||||
Reference in New Issue
Block a user