Commit 4d2a297a authored by Mark Olesen's avatar Mark Olesen
Browse files

BUG: syntax problems found by gcc-4.5.0

- "cpp -traditional-cpp" doesn't strip C++-style comments
  Probably need a workaround with sed -e 's@^ *//@@' if we
  wish to support C++-style comments in Make/{files,options}

- lduMatrixTests.C:121:1:
  error: ‘Foam::lduMatrix::solverPerformance::solverPerformance’ names
  the constructor, not the type

- edgeFaceCirculatorI.H:355:1:
  error: ‘Foam::edgeFaceCirculator::edgeFaceCirculator’ names the
  constructor, not the type

- patchPointEdgeCirculatorI.H:236:1:
  error: ‘Foam::patchPointEdgeCirculator::patchPointEdgeCirculator’
  names the constructor, not the type

- objToVTK.C:116:5:
  error: ‘Foam::argList::argList’ names the constructor, not the type

  same in surfaceClean.C, surfaceRefineRedGreen.C, surfaceSplitByPatch.C

- fireFoam/createFields.H:74:41:
  error: type/value mismatch at argument 1 in template parameter list
  for ‘template<class T> class Foam::autoPtr’
parent 87f151c4
......@@ -71,9 +71,9 @@ IOdictionary combustionProperties
);
Info<< "Creating combustion model\n" << endl;
autoPtr<combustionModel::combustionModel> combustion
autoPtr<combustionModel> combustion
(
combustionModel::combustionModel::New
combustionModel::New
(
combustionProperties,
thermo,
......
......@@ -233,7 +233,7 @@ void Foam::patchPointEdgeCirculator::setCanonical()
//- Step to next edge.
Foam::patchPointEdgeCirculator::patchPointEdgeCirculator&
Foam::patchPointEdgeCirculator&
Foam::patchPointEdgeCirculator::operator++()
{
if (index_ == -1)
......
......@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
argList::validArgs.clear();
argList::validArgs.append("OBJ file");
argList::validArgs.append("output VTK file");
argList::argList args(argc, argv);
argList args(argc, argv);
const fileName objName = args[1];
const fileName outName = args[2];
......
......@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
argList::validArgs.append("surface file");
argList::validArgs.append("min length");
argList::validArgs.append("output surface file");
argList::argList args(argc, argv);
argList args(argc, argv);
const fileName inFileName = args[1];
const scalar minLen = args.argRead<scalar>(2);
......
......@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
argList::validArgs.clear();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::argList args(argc, argv);
argList args(argc, argv);
const fileName surfFileName = args[1];
const fileName outFileName = args[2];
......
......@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
argList::noParallel();
argList::validArgs.clear();
argList::validArgs.append("input file");
argList::argList args(argc, argv);
argList args(argc, argv);
const fileName surfName = args[1];
......
......@@ -118,7 +118,7 @@ void Foam::lduMatrix::solverPerformance::print() const
}
Foam::lduMatrix::solverPerformance::solverPerformance Foam::max
Foam::lduMatrix::solverPerformance Foam::max
(
const lduMatrix::solverPerformance& sp1,
const lduMatrix::solverPerformance& sp2
......
......@@ -187,7 +187,9 @@ $(interpolation)/interpolationCellPointWallModified/cellPointWeightWallModified/
$(interpolation)/interpolationCellPointWallModified/makeInterpolationCellPointWallModified.C
volPointInterpolation = interpolation/volPointInterpolation
/* $(volPointInterpolation)/pointPatchInterpolation/pointPatchInterpolation.C */
/*
$(volPointInterpolation)/pointPatchInterpolation/pointPatchInterpolation.C
*/
$(volPointInterpolation)/volPointInterpolation.C
surfaceInterpolation = interpolation/surfaceInterpolation
......@@ -305,8 +307,10 @@ $(snGradSchemes)/snGradScheme/snGradSchemes.C
$(snGradSchemes)/correctedSnGrad/correctedSnGrads.C
$(snGradSchemes)/limitedSnGrad/limitedSnGrads.C
$(snGradSchemes)/uncorrectedSnGrad/uncorrectedSnGrads.C
//$(snGradSchemes)/quadraticFitSnGrad/quadraticFitSnGradData.C
//$(snGradSchemes)/quadraticFitSnGrad/quadraticFitSnGrads.C
/*
$(snGradSchemes)/quadraticFitSnGrad/quadraticFitSnGradData.C
$(snGradSchemes)/quadraticFitSnGrad/quadraticFitSnGrads.C
*/
convectionSchemes = finiteVolume/convectionSchemes
$(convectionSchemes)/convectionScheme/convectionSchemes.C
......
......@@ -352,8 +352,8 @@ bool Foam::edgeFaceCirculator::operator!=(const edgeFaceCirculator& circ) const
//- Step to next face.
Foam::edgeFaceCirculator::edgeFaceCirculator&
Foam::edgeFaceCirculator::operator++()
Foam::edgeFaceCirculator&
Foam::edgeFaceCirculator::operator++()
{
if (faceLabel_ == -1)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment