diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index 4d13444f0..dfb31808a 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -90,7 +90,7 @@ String Utility::GetSymbolName(const void *addr) #ifdef HAVE_DLADDR Dl_info dli; - if (dladdr(addr, &dli) > 0) + if (dladdr(const_cast(addr), &dli) > 0) return dli.dli_sname; #endif /* HAVE_DLADDR */