Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 3b44ecc

Browse files
committedSep 6, 2017
Fix some cl2.hpp warnings
1 parent a16c582 commit 3b44ecc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎libethash-cl/CL/cl2.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,7 @@ class Wrapper<cl_device_id>
17401740
static bool isReferenceCountable(cl_device_id device)
17411741
{
17421742
bool retVal = false;
1743+
(void)device;
17431744
#if CL_HPP_TARGET_OPENCL_VERSION >= 120
17441745
#if CL_HPP_MINIMUM_OPENCL_VERSION < 120
17451746
if (device != NULL) {
@@ -1826,9 +1827,7 @@ class Wrapper<cl_device_id>
18261827

18271828
cl_type& operator ()() { return object_; }
18281829

1829-
const cl_type get() const { return object_; }
1830-
1831-
cl_type get() { return object_; }
1830+
cl_type get() const { return object_; }
18321831

18331832
protected:
18341833
template<typename Func, typename U>

2 commit comments

Comments
 (2)

EoD commented on Sep 6, 2017

@EoD
Contributor

@chfast Do you want to propose those changes to KhronosGroup/OpenCL-CLHPP maybe?

chfast commented on Sep 6, 2017

@chfast
ContributorAuthor
This repository has been archived.