diff --git a/opm/core/io/eclipse/EclipseGridParser.cpp b/opm/core/io/eclipse/EclipseGridParser.cpp index c5a365fa..1bf9dcb6 100644 --- a/opm/core/io/eclipse/EclipseGridParser.cpp +++ b/opm/core/io/eclipse/EclipseGridParser.cpp @@ -1106,7 +1106,9 @@ void EclipseGridParser::saveEGRID_INIT( const std::string& output_dir , const st void EclipseGridParser::saveEGRID( const std::string & filename, int num_cells , const int * global_cell) const { - static_cast(filename); // Suppress "unused variable" warning. + static_cast(filename); // Suppress "unused variable" warning. + static_cast(num_cells); // Suppress "unused variable" warning. + static_cast(global_cell); // Suppress "unused variable" warning. THROW("Cannot write EGRID format without ERT library support. Reconfigure opm-core with ERT support and recompile."); }