--- clang-14.log 2022-11-02 22:36:14.735758261 +1100 +++ clang-15.log 2022-11-02 22:36:14.736758258 +1100 @@ -75,7 +75,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:27: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] +./src/compat/cuda/cuda_runtime.h:114:27: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:48: note: expanded from macro 'make_uchar4' @@ -84,7 +84,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:27: note: insert an explicit cast to silence this issue +./src/compat/cuda/cuda_runtime.h:114:27: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( @@ -94,7 +94,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:37: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] +./src/compat/cuda/cuda_runtime.h:114:37: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:56: note: expanded from macro 'make_uchar4' @@ -103,7 +103,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:37: note: insert an explicit cast to silence this issue +./src/compat/cuda/cuda_runtime.h:114:37: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( @@ -113,7 +113,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:47: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] +./src/compat/cuda/cuda_runtime.h:114:47: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:64: note: expanded from macro 'make_uchar4' @@ -122,7 +122,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:47: note: insert an explicit cast to silence this issue +./src/compat/cuda/cuda_runtime.h:114:47: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( @@ -132,7 +132,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:57: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] +./src/compat/cuda/cuda_runtime.h:114:57: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:72: note: expanded from macro 'make_uchar4' @@ -141,7 +141,7 @@ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ -./src/compat/cuda/cuda_runtime.h:115:57: note: insert an explicit cast to silence this issue +./src/compat/cuda/cuda_runtime.h:114:57: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast(