Skip to content

Commit f30aa31

Browse files
committed
Silence -Wempty-body and possible logic fault in src/
gpuarray_buffer_opencl.c
1 parent 2503b29 commit f30aa31

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/gpuarray_buffer_opencl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,11 +1453,12 @@ static int cl_property(gpucontext *c, gpudata *buf, gpukernel *k, int prop_id,
14531453

14541454
static const char *cl_error(gpucontext *c) {
14551455
cl_ctx *ctx = (cl_ctx *)c;
1456-
if (ctx == NULL)
1456+
if (ctx == NULL){
14571457
return get_error_string(err);
1458-
else
1458+
}else{
14591459
ASSERT_CTX(ctx);
14601460
return get_error_string(ctx->err);
1461+
}
14611462
}
14621463

14631464
GPUARRAY_LOCAL

0 commit comments

Comments
 (0)