mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: codeStream.C: added cast
This commit is contained in:
@ -217,8 +217,11 @@ bool Foam::functionEntries::codeStream::execute
|
||||
|
||||
|
||||
// Find the library handle.
|
||||
void (*function)(const dictionary&, Ostream& os);
|
||||
*(void **) (&function) = dlSym(lib, name);
|
||||
void (*function)(const dictionary&, Ostream&);
|
||||
function = reinterpret_cast<void(*)(const dictionary&, Ostream&)>
|
||||
(
|
||||
dlSym(lib, name)
|
||||
);
|
||||
|
||||
if (!function)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user