fixed NamedEnum array bounds warning

* some warnings were spurious with gcc-4.3.0, but gcc-4.3.1 correctly
    flagged these problems:
    - processorLduInterfaceTemplates.C
This commit is contained in:
Mark Olesen
2008-06-17 10:01:10 +02:00
parent 0067393011
commit 5d377a2109

View File

@ -73,8 +73,7 @@ void Foam::processorLduInterface::send
else
{
FatalErrorIn("processorLduInterface::send")
<< "Unsuported communications type "
<< Pstream::commsTypeNames[commsType]
<< "Unsupported communications type " << commsType
<< exit(FatalError);
}
}
@ -104,8 +103,7 @@ void Foam::processorLduInterface::receive
else
{
FatalErrorIn("processorLduInterface::receive")
<< "Unsuported communications type "
<< Pstream::commsTypeNames[commsType]
<< "Unsupported communications type " << commsType
<< exit(FatalError);
}
}
@ -184,8 +182,7 @@ void Foam::processorLduInterface::compressedSend
else
{
FatalErrorIn("processorLduInterface::compressedSend")
<< "Unsuported communications type "
<< Pstream::commsTypeNames[commsType]
<< "Unsupported communications type " << commsType
<< exit(FatalError);
}
}
@ -225,8 +222,7 @@ void Foam::processorLduInterface::compressedReceive
else if (commsType != Pstream::nonBlocking)
{
FatalErrorIn("processorLduInterface::compressedReceive")
<< "Unsuported communications type "
<< Pstream::commsTypeNames[commsType]
<< "Unsupported communications type " << commsType
<< exit(FatalError);
}