Fix build warning about decltype(dlclose)
This commit is contained in:
@@ -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,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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user