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.
|
// 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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user