regression on -current with ocl-icd
by nobodino from LinuxQuestions.org on (#5KTS0)
ocl-icd doesn't build anymore on -current:
--------------------
/usr/include/CL/cl_ext.h:284:1: error: old-style parameter declarations in prototyped function definition
284 | clCreateSubDevicesEXT(cl_device_id in_device,
| ^~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:540:23: error: parameter name omitted
540 | clCreateSubDevicesEXT(cl_device_id /*in_device*/,
| ^~~~~~~~~~~~
run_dummy_icd_gen.c:541:23: error: parameter name omitted
541 | const cl_device_partition_property_ext * /* properties */,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:542:23: error: parameter name omitted
542 | cl_uint /*num_entries*/,
| ^~~~~~~
run_dummy_icd_gen.c:543:23: error: parameter name omitted
543 | cl_device_id * /*out_devices*/,
| ^~~~~~~~~~~~~~
run_dummy_icd_gen.c:544:23: error: parameter name omitted
544 | cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;;
| ^~~~~~~~~
run_dummy_icd_gen.c:1627: error: expected '{' at end of input
1627 | }
|
run_dummy_icd_gen.c:1627: warning: control reaches end of non-void function [-Wreturn-type]
1627 | }
|
make[2]: *** [Makefile:918: run_dummy_icd_through_our_ICDL-run_dummy_icd_gen.o] Error 1
make[2]: Leaving directory '/tmp/ocl-icd-2.3.0'
make[1]: *** [Makefile:1024: all-recursive] Error 1
make[1]: Leaving directory '/tmp/ocl-icd-2.3.0'
make: *** [Makefile:592: all] Error 2
---------------------
--------------------
/usr/include/CL/cl_ext.h:284:1: error: old-style parameter declarations in prototyped function definition
284 | clCreateSubDevicesEXT(cl_device_id in_device,
| ^~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:540:23: error: parameter name omitted
540 | clCreateSubDevicesEXT(cl_device_id /*in_device*/,
| ^~~~~~~~~~~~
run_dummy_icd_gen.c:541:23: error: parameter name omitted
541 | const cl_device_partition_property_ext * /* properties */,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:542:23: error: parameter name omitted
542 | cl_uint /*num_entries*/,
| ^~~~~~~
run_dummy_icd_gen.c:543:23: error: parameter name omitted
543 | cl_device_id * /*out_devices*/,
| ^~~~~~~~~~~~~~
run_dummy_icd_gen.c:544:23: error: parameter name omitted
544 | cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;;
| ^~~~~~~~~
run_dummy_icd_gen.c:1627: error: expected '{' at end of input
1627 | }
|
run_dummy_icd_gen.c:1627: warning: control reaches end of non-void function [-Wreturn-type]
1627 | }
|
make[2]: *** [Makefile:918: run_dummy_icd_through_our_ICDL-run_dummy_icd_gen.o] Error 1
make[2]: Leaving directory '/tmp/ocl-icd-2.3.0'
make[1]: *** [Makefile:1024: all-recursive] Error 1
make[1]: Leaving directory '/tmp/ocl-icd-2.3.0'
make: *** [Makefile:592: all] Error 2
---------------------