From c201d15ab8873d3cd1156082d948835b7c9e6a23 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Fri, 3 Jan 2020 09:54:03 +0100 Subject: [PATCH] Fix JiT compiler warning on intel for -m 22100 --- OpenCL/m22100-pure.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenCL/m22100-pure.cl b/OpenCL/m22100-pure.cl index 67fa3d73b..9af1d0b92 100644 --- a/OpenCL/m22100-pure.cl +++ b/OpenCL/m22100-pure.cl @@ -39,7 +39,7 @@ typedef struct bitlocker_tmp #ifdef REAL_SHM #define SHM_TYPE2 LOCAL_AS #else -#define SHM_TYPE2 GLOBAL_AS +#define SHM_TYPE2 GLOBAL_AS const #endif DECLSPEC void sha256_transform_vector_pc (const u32x *w0, const u32x *w1, const u32x *w2, const u32x *w3, u32x *digest, SHM_TYPE2 u32 s_wb_ke_pc[48]) @@ -258,7 +258,7 @@ KERNEL_FQ void m22100_loop (KERN_ATTR_TMPS_ESALT (bitlocker_tmp_t, bitlocker_t)) #ifdef REAL_SHM LOCAL_VK u32 s_wb_ke_pc[FIXED_ITER_INCR][48]; #else - GLOBAL_AS u32 (*s_wb_ke_pc)[48]; + GLOBAL_AS const u32 (*s_wb_ke_pc)[48]; #endif for (u32 t = 0; t < FIXED_ITER_TOTAL; t += FIXED_ITER_INCR)