diff --git a/src/OSspecific/POSIX/signals/sigFpe.C b/src/OSspecific/POSIX/signals/sigFpe.C index 6b48544ec..d849cb74c 100644 --- a/src/OSspecific/POSIX/signals/sigFpe.C +++ b/src/OSspecific/POSIX/signals/sigFpe.C @@ -326,7 +326,7 @@ void Foam::sigFpe::set(const bool verbose) { vm_protect( mach_task_self(), - (uintptr_t)zone, + reinterpret_cast(zone), sizeof(malloc_zone_t), 0, VM_PROT_READ | VM_PROT_WRITE @@ -338,7 +338,7 @@ void Foam::sigFpe::set(const bool verbose) { vm_protect( mach_task_self(), - (uintptr_t)zone, + reinterpret_cast(zone), sizeof(malloc_zone_t), 0, VM_PROT_READ diff --git a/src/foam/containers/NamedEnum/NamedEnum.C b/src/foam/containers/NamedEnum/NamedEnum.C index d5421cea2..776162ef9 100644 --- a/src/foam/containers/NamedEnum/NamedEnum.C +++ b/src/foam/containers/NamedEnum/NamedEnum.C @@ -23,9 +23,15 @@ License \*---------------------------------------------------------------------------*/ -#include "NamedEnum.H" #include "stringList.H" +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + + +template +const char* Foam::NamedEnum::names[nEnum]; + + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template diff --git a/src/thermophysicalModels/reactionThermo/chemistryReaders/chemkinReader/chemkinReader.C b/src/thermophysicalModels/reactionThermo/chemistryReaders/chemkinReader/chemkinReader.C index b69fe5aaa..bdaa6471d 100644 --- a/src/thermophysicalModels/reactionThermo/chemistryReaders/chemkinReader/chemkinReader.C +++ b/src/thermophysicalModels/reactionThermo/chemistryReaders/chemkinReader/chemkinReader.C @@ -392,7 +392,7 @@ void Foam::chemkinReader::addPressureDependentReaction default: { - if (fofType < 4) + if (fofType < unknownFallOffFunctionType) { FatalErrorIn("chemkinReader::addPressureDependentReaction") << "Fall-off function type "