Suppress unused argument errors.

This commit is contained in:
Atgeirr Flø Rasmussen committed 2015-02-17 13:44:33 +01:00
1 parent a4024a3f9e
commit 17ade0457f
3 files changed
+11 -8

No files matched your search

+6 -5
View File
@@ -80,8 +80,9 @@ namespace Opm {
}
template <class T, unsigned long n>
void resizeContainer( std::array<T, n>& a, size_t size )
void resizeContainer( std::array<T, n>& /* a */, size_t size )
{
static_cast<void>(size);
assert( int(size) == int(n) );
}
@@ -142,16 +143,16 @@ namespace Opm {
BlackoilStateId = 2,
WellStateFullyImplicitBackoilId = 3 };
inline int objectId( const SimulatorState& state ) {
inline int objectId( const SimulatorState& /* state */) {
return SimulatorStateId;
}
inline int objectId( const WellState& state ) {
inline int objectId( const WellState& /* state */) {
return WellStateId;
}
inline int objectId( const BlackoilState& state ) {
inline int objectId( const BlackoilState& /* state */) {
return BlackoilStateId;
}
inline int objectId( const WellStateFullyImplicitBlackoil& state ) {
inline int objectId( const WellStateFullyImplicitBlackoil& /* state */) {
return WellStateFullyImplicitBackoilId;
}
+1 -1
View File
@@ -89,7 +89,7 @@ public:
{
assert( T::codimension == 0);
assert( size == 2 * recvState_.numPhases() +4+2*recvGrid_.numCellFaces(e.index()));
(void) size;
static_cast<void>(size);
for ( int i=0; i<recvState_.numPhases(); ++i )
{
@@ -127,7 +127,8 @@ namespace Opm
{}
/** \copydoc Opm::OutputWriter::writeInit */
void writeInit(const SimulatorTimerInterface &timer) {}
void writeInit(const SimulatorTimerInterface& /* timer */)
{}
/** \copydoc Opm::OutputWriter::writeTimeStep */
void writeTimeStep(const SimulatorTimerInterface& timer,
@@ -155,7 +156,8 @@ namespace Opm
{}
/** \copydoc Opm::OutputWriter::writeInit */
void writeInit(const SimulatorTimerInterface &timer) {}
void writeInit(const SimulatorTimerInterface& /* timer */)
{}
/** \copydoc Opm::OutputWriter::writeTimeStep */
void writeTimeStep(const SimulatorTimerInterface& timer,