mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 14:09:03 +00:00
There are multiple incompatiable pointer types warnings when compiling the device_execution test with clang. There was an upstream llvm patch that will turn these warnings into an error https://github.com/llvm/llvm-project/pull/157364. To not encounter this issue in the future, fix these warnings by changing the parameter types. ``` warning: incompatible pointer types passing '__global ulong (*)[512]' (aka '__global unsigned long (*)[512]') to parameter of type 'const __generic ulong *' (aka 'const __generic unsigned long *') [-Wincompatible-pointer-types] 37 | void (^checkBlock) (void) = ^{ check_res(tid, &value, res); }; | ^~~~~~ note: passing argument to parameter 'value' here -- warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types] 10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); }; | ^~~ note: passing argument to parameter 'val' here -- warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types] 10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); }; | ^~~ note: passing argument to parameter 'val' here -- warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types] 10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); }; | ^~~ note: passing argument to parameter 'val' here -- warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types] 10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); }; | ^~~ note: passing argument to parameter 'val' here -- warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types] 10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); }; | ^~~ note: passing argument to parameter 'val' here -- warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types] 10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); }; | ^~~ note: passing argument to parameter 'val' here ```
21 KiB
21 KiB