diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2021-06-29 16:48:30 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2021-06-29 16:48:30 +0900 |
commit | 59517d246dc206d40b71b0312030936c1559d43f (patch) | |
tree | 41db19cf7adb3c1c7dc730da36482938e7791175 | |
parent | 6eb26c720d45c650ef7b29c4fa9007275c10e106 (diff) | |
download | aul-1-59517d246dc206d40b71b0312030936c1559d43f.tar.gz aul-1-59517d246dc206d40b71b0312030936c1559d43f.tar.bz2 aul-1-59517d246dc206d40b71b0312030936c1559d43f.zip |
Remove build warning message
Change-Id: I971011fe9fe37dfa4b6cf9db5bb906e483074ada
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/aul_svc.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/aul_svc.cc b/src/aul_svc.cc index 252d029f..153ee6eb 100644 --- a/src/aul_svc.cc +++ b/src/aul_svc.cc @@ -359,7 +359,11 @@ int GetAppIdByAliasAppIdFromDB(const char* alias_appid, char** app_id, return AUL_SVC_RET_ERROR; } - std::unique_ptr<void, decltype(dlclose)*> handle_auto(handle, dlclose); + auto dl_closer = [](void* ptr) { + dlclose(ptr); + }; + + std::unique_ptr<void, decltype(dl_closer)> handle_auto(handle, dl_closer); auto* func = reinterpret_cast<AulServiceForeachUsrAliasInfoFunc>( dlsym(handle, kAulServiceForeachUsrAliasInfo)); if (func == nullptr) { |