Fix build warning about decltype(dlclose)

This commit is contained in:
2025-01-08 15:03:59 -04:00
parent 2dc3083cdb
commit 04db7bf76c
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -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