masterUncollatedFileOperation: Updated to avoid warning from clang

This commit is contained in:
Henry Weller
2017-07-11 15:11:38 +01:00
parent 4e024cd274
commit b4e88f260b
4 changed files with 15 additions and 8 deletions

View File

@ -526,7 +526,8 @@ int main(int argc, char *argv[])
<< endl;
}
fileOperations::collatedFileOperation::maxThreadFileBufferSize = bufSz;
fileOperations::collatedFileOperation::maxThreadFileBufferSize =
bufSz;
}

View File

@ -459,7 +459,8 @@ masterUncollatedFileOperation
if (verbose)
{
Info<< "I/O : " << typeName
<< " (maxMasterFileBufferSize " << maxMasterFileBufferSize << ')' << endl;
<< " (maxMasterFileBufferSize " << maxMasterFileBufferSize << ')'
<< endl;
}
if (regIOobject::fileModificationChecking == regIOobject::timeStampMaster)
@ -703,8 +704,9 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::filePath
// Determine master filePath and scatter
fileName objPath;
pathType searchType;
pathType searchType = NOTFOUND;
word newInstancePath;
if (Pstream::master())
{
objPath = filePathInfo
@ -716,11 +718,13 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::filePath
newInstancePath
);
}
{
label masterType(searchType);
Pstream::scatter(masterType);
searchType = pathType(masterType);
}
Pstream::scatter(newInstancePath);
@ -780,8 +784,9 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::dirPath
// Determine master dirPath and scatter
fileName objPath;
pathType searchType;
pathType searchType = NOTFOUND;
word newInstancePath;
if (Pstream::master())
{
objPath = filePathInfo
@ -793,6 +798,7 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::dirPath
newInstancePath
);
}
{
label masterType(searchType);
Pstream::scatter(masterType);

View File

@ -46,7 +46,7 @@ namespace fileOperations
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
Foam::fileName Foam::fileOperations::uncollatedFileOperation::doFilePath
Foam::fileName Foam::fileOperations::uncollatedFileOperation::filePathInfo
(
const bool checkGlobal,
const bool isFile,
@ -357,7 +357,7 @@ Foam::fileName Foam::fileOperations::uncollatedFileOperation::filePath
<< " checkGlobal:" << checkGlobal << endl;
}
fileName objPath(doFilePath(checkGlobal, true, io));
fileName objPath(filePathInfo(checkGlobal, true, io));
if (debug)
{
@ -383,7 +383,7 @@ Foam::fileName Foam::fileOperations::uncollatedFileOperation::dirPath
<< " checkGlobal:" << checkGlobal << endl;
}
fileName objPath(doFilePath(checkGlobal, false, io));
fileName objPath(filePathInfo(checkGlobal, false, io));
if (debug)
{

View File

@ -55,7 +55,7 @@ class uncollatedFileOperation
//- Search for an object.
// checkGlobal : also check undecomposed case
// isFile : true:check for file false:check for directory
fileName doFilePath
fileName filePathInfo
(
const bool checkGlobal,
const bool isFile,