COMP: silence some compiler warnings/errors

- catch (value)
- forward declarations for operator<<()
- non-const access to Reaction name()
- spurious return statement
This commit is contained in:
Mark Olesen
2018-05-07 17:21:56 +02:00
parent 272e09b051
commit 2f567e53de
10 changed files with 23 additions and 39 deletions

View File

@ -104,12 +104,13 @@ class loopControl
//- Execute specified function names
bool checkConverged() const;
//- Disallow default bitwise copy construct
//- No copy construct
loopControl(const loopControl&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const loopControl&) = delete;
protected:
// Protected data
@ -206,18 +207,15 @@ public:
// }
// \endcode
bool loop();
// IOstream operators
//- Write name and state (on/off, index/total) to Ostream
friend Ostream& operator<<(Ostream& os, const loopControl& ctrl);
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//- Write name and state (on/off, index/total) to Ostream
Ostream& operator<<(Ostream& os, const loopControl& ctrl);
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //