KhronosGroup / OpenCL-ICD-Loader

The OpenCL ICD Loader project.
Apache License 2.0
246 stars 136 forks source link

Consider to fix -Wcast-qual warning in 3 files #240

Open haonanya opened 1 month ago

haonanya commented 1 month ago

ocl-icd-src/loader/icd.c:329:23: error: cast from 'const struct _cl_icd_dispatch *' to 'void ' drops const qualifier [-Werror,-Wcast-qual] 329 | ((void )layerDispatch)[i] ? ocl-icd-src/loader/linux/icd_linux.c:132:39 ocl-icd-src/loader/icd_dispatch.c::44

opencl-icd-loader fail with -Werror,-Wcast-qual. tag @bashbaug, @Kerilk

Drafted https://github.com/KhronosGroup/OpenCL-ICD-Loader/pull/241 to fix them.