mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user