Further changes to remove warnings from gcc-4.3.0.

This commit is contained in:
henry
2008-05-27 16:13:24 +01:00
parent ba3acaaf08
commit cac72ae991
11 changed files with 46 additions and 57 deletions

View File

@ -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.

View File

@ -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
// ************************************************************************* //

View File

@ -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
// ************************************************************************* //