Skip to content

Commit 61007b9

Browse files
Corrections for older compilers
1 parent 335aee3 commit 61007b9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Diff for: src/Errors.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ void Errors::prepareErrorFiles(const std::string& folder)
9090
fileStream.open((myStream.str()).c_str());
9191
fileStream.close();
9292

93-
myStream = std::stringstream();
93+
myStream.str("");
94+
myStream.clear();
9495
fileName = "warning";
9596
myStream << folder << "errorsAndWarnings/" << fileName << "_CPU" << rankCpu << ".out";
9697
fileStream.open((myStream.str()).c_str());

Diff for: src/Parallel/decomposition.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ class Decomposition
5454

5555
public: //Ctors
5656
Decomposition() = default;
57-
Decomposition(const Decomposition& other) = default;
58-
Decomposition(Decomposition&& other) = default;
59-
Decomposition& operator=(const Decomposition& other) & = default;
60-
Decomposition& operator=(Decomposition&& other) & = default;
57+
Decomposition(const Decomposition& /*other*/) = default;
58+
Decomposition(Decomposition&& /*other*/) = default;
59+
Decomposition& operator=(const Decomposition& /*other*/) & = default;
60+
Decomposition& operator=(Decomposition&& /*other*/) & = default;
6161
~Decomposition() = default;
6262

6363

Diff for: src/Relaxations/RelaxationPTMu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#include "Relaxation.h"
3535

36-
//! \class RelaxationPTMU
36+
//! \class RelaxationPTMu
3737
//! \brief Pressure-Temperature-Chemical Potential relaxation / Phase change
3838
class RelaxationPTMu : public Relaxation
3939
{

0 commit comments

Comments
 (0)