Merge pull request #71 from bska/parser-suppress-warning

Suppress warning about unused variable in !HAVE_ERT case.
This commit is contained in:
Atgeirr Flø Rasmussen 2012-10-15 03:54:00 -07:00
commit b7a4f95716

View File

@ -1130,6 +1130,7 @@ void EclipseGridParser::getNumericErtFields(const string& filename)
}
ecl_file_close(ecl_file);
#else
static_cast<void>(filename); // Suppress "unused variable" warning.
THROW("Cannot use IMPORT keyword without ert library support. Reconfigure opm-core with --with-ert and recompile.");
#endif // HAVE_ERT
}