From 68f921ee5e0d1773347e1195fb8826098449db49 Mon Sep 17 00:00:00 2001 From: marktwtn Date: Sun, 17 Mar 2019 15:56:18 +0800 Subject: [PATCH] fix: Fix compiler warning of unused label --- src/pow_cl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pow_cl.c b/src/pow_cl.c index a73d6a0..2b3ef15 100644 --- a/src/pow_cl.c +++ b/src/pow_cl.c @@ -266,7 +266,7 @@ static bool PoWCL_Context_Initialize(ImplContext *impl_ctx) PoW_CL_Context *ctx = (PoW_CL_Context *) malloc(sizeof(PoW_CL_Context) * impl_ctx->num_max_thread); if (!ctx) - return false; + goto fail; for (int i = 0; i < impl_ctx->num_max_thread; i++) { ctx[i].clctx = &_opencl_ctx[i];