Add warning for c-style casts to gcc

This commit is contained in:
Jason Turner
2015-01-07 13:56:48 -07:00
parent 52d03a66b1
commit d91294b989
2 changed files with 2 additions and 2 deletions

View File

@@ -464,7 +464,7 @@ namespace chaiscript
memset( &rInfo, 0, sizeof(rInfo) );
cast_union u;
u.in_ptr = &ChaiScript::use;
if ( dladdr((void*)(u.out_ptr), &rInfo) && rInfo.dli_fname ) {
if ( dladdr(static_cast<void*>(u.out_ptr), &rInfo) && rInfo.dli_fname ) {
std::string dllpath(rInfo.dli_fname);
const size_t lastslash = dllpath.rfind('/');
if (lastslash != std::string::npos)