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: public:
SenseApiLib(const std::string& path) SenseApiLib(const std::string& path)
: libraryPath(path), handle(nullptr, &dlclose) : libraryPath(path), handle(nullptr, reinterpret_cast<void(*)(void*)>(&dlclose))
{} {}
public: public:
std::string libraryPath; 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 * @brief Every sense API lib is required to provide a function that returns
-2
View File
@@ -2,5 +2,3 @@ AM_CPPFLAGS+= -I"$(top_srcdir)/hcore/include"
noinst_LIBRARIES=libsenseApis.a noinst_LIBRARIES=libsenseApis.a
libsenseApis_a_SOURCES=senseApiManager.cpp libsenseApis_a_SOURCES=senseApiManager.cpp
senseApiManager.o: AM_CPPFLAGS+=-Wno-ignored-attributes