Fix build warning about decltype(dlclose)
This commit is contained in:
@@ -43,12 +43,12 @@ public:
|
||||
|
||||
public:
|
||||
SenseApiLib(const std::string& path)
|
||||
: libraryPath(path), handle(nullptr, &dlclose)
|
||||
: libraryPath(path), handle(nullptr, reinterpret_cast<void(*)(void*)>(&dlclose))
|
||||
{}
|
||||
|
||||
public:
|
||||
std::string libraryPath;
|
||||
std::unique_ptr<void, decltype(&dlclose)> handle;
|
||||
std::unique_ptr<void, void(*)(void*)> handle;
|
||||
|
||||
/**
|
||||
* @brief Every sense API lib is required to provide a function that returns
|
||||
|
||||
Reference in New Issue
Block a user