Porting: Clean up of initialisation of static data, casting and comparison with enum, Mac OSX

This commit is contained in:
Hrvoje Jasak 2019-05-01 13:55:18 +02:00
parent 267fa0eba8
commit b71851619f
3 changed files with 10 additions and 4 deletions

View file

@ -326,7 +326,7 @@ void Foam::sigFpe::set(const bool verbose)
{
vm_protect(
mach_task_self(),
(uintptr_t)zone,
reinterpret_cast<uintptr_t>(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<uintptr_t>(zone),
sizeof(malloc_zone_t),
0,
VM_PROT_READ

View file

@ -23,9 +23,15 @@ License
\*---------------------------------------------------------------------------*/
#include "NamedEnum.H"
#include "stringList.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<class Enum, int nEnum>
const char* Foam::NamedEnum<Enum, nEnum>::names[nEnum];
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Enum, int nEnum>

View file

@ -392,7 +392,7 @@ void Foam::chemkinReader::addPressureDependentReaction
default:
{
if (fofType < 4)
if (fofType < unknownFallOffFunctionType)
{
FatalErrorIn("chemkinReader::addPressureDependentReaction")
<< "Fall-off function type "