COMP: codeStream.C: added cast

This commit is contained in:
mattijs
2011-02-21 11:56:51 +00:00
parent 6d61e43f4a
commit 7542b9b53b

View File

@ -217,8 +217,11 @@ bool Foam::functionEntries::codeStream::execute
// Find the library handle. // Find the library handle.
void (*function)(const dictionary&, Ostream& os); void (*function)(const dictionary&, Ostream&);
*(void **) (&function) = dlSym(lib, name); function = reinterpret_cast<void(*)(const dictionary&, Ostream&)>
(
dlSym(lib, name)
);
if (!function) if (!function)
{ {