summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-03-27 22:41:28 +0200
committerpsychocrypt <psychocryptHPC@gmail.com>2018-03-27 22:41:28 +0200
commit983efafd4831cdb54c95e3343f969cd6fa776201 (patch)
tree24ac5e897f5bd68b72e3184b5deb11e2b3478029
parent09a5dcce2c51d87d77244970d2c09bea3207da7a (diff)
downloadxmr-stak-983efafd4831cdb54c95e3343f969cd6fa776201.zip
xmr-stak-983efafd4831cdb54c95e3343f969cd6fa776201.tar.gz
fix parentheses warning
fix warning ``` /Users/user/xmr-stak/xmrstak/backend/amd/amd_gpu/gpu.cpp:481:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if( ret = clGetProgramInfo(ctx->Program, CL_PROGRAM_BINARIES, num_devices * sizeof(char*), all_programs.data(),NULL) != CL_SUCCESS) ```
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 8d0fd32..b3786a9 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -478,7 +478,7 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_
p_id++;
}
- if( ret = clGetProgramInfo(ctx->Program, CL_PROGRAM_BINARIES, num_devices * sizeof(char*), all_programs.data(),NULL) != CL_SUCCESS)
+ if((ret = clGetProgramInfo(ctx->Program, CL_PROGRAM_BINARIES, num_devices * sizeof(char*), all_programs.data(),NULL)) != CL_SUCCESS)
{
printer::inst()->print_msg(L1,"Error %s when calling clGetProgramInfo.", err_to_str(ret));
return ERR_OCL_API;
OpenPOWER on IntegriCloud