mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Further changes to remove warnings from gcc-4.3.0.
This commit is contained in:
@ -125,7 +125,7 @@ public:
|
||||
label above() const
|
||||
{
|
||||
return above_;
|
||||
}
|
||||
}
|
||||
|
||||
const labelList& below() const
|
||||
{
|
||||
@ -468,7 +468,7 @@ public:
|
||||
//- Like above but switches between linear/tree communication
|
||||
template <class Container>
|
||||
static void mapCombineScatter(Container& Values);
|
||||
|
||||
|
||||
|
||||
|
||||
// Gather/scatter keeping the individual processor data separate.
|
||||
|
||||
@ -34,21 +34,15 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Get next 'valid character': i.e. not white space or comment.
|
||||
|
||||
char ISstream::nextValid()
|
||||
char Foam::ISstream::nextValid()
|
||||
{
|
||||
char c = 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
// Get next non-whitespace character
|
||||
while (get(c) && isspace(c));
|
||||
while (get(c) && isspace(c))
|
||||
{}
|
||||
|
||||
// Return if stream is bad
|
||||
if (bad() || isspace(c))
|
||||
@ -67,7 +61,8 @@ char ISstream::nextValid()
|
||||
|
||||
if (c == '/') // This is the start of a C++ style one line comment
|
||||
{
|
||||
while (get(c) && c != '\n');
|
||||
while (get(c) && c != '\n')
|
||||
{}
|
||||
}
|
||||
else if (c == '*') // This is the start of a C style comment
|
||||
{
|
||||
@ -105,8 +100,4 @@ char ISstream::nextValid()
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -31,12 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
label readHexLabel(ISstream& is)
|
||||
Foam::label Foam::readHexLabel(ISstream& is)
|
||||
{
|
||||
register label result = 0;
|
||||
|
||||
@ -48,7 +43,8 @@ label readHexLabel(ISstream& is)
|
||||
static const label alphaOffset = toupper('A') - 10;
|
||||
|
||||
// Get next non-whitespace character
|
||||
while (is.get(c) && isspace(c));
|
||||
while (is.get(c) && isspace(c))
|
||||
{}
|
||||
|
||||
do
|
||||
{
|
||||
@ -77,8 +73,4 @@ label readHexLabel(ISstream& is)
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user