From db77953c3941f8bf1dc2f50069c453e2dcba1145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Sun, 14 Oct 2012 17:55:51 +0200 Subject: [PATCH] Suppress warning about unused variable in !HAVE_ERT case. --- opm/core/eclipse/EclipseGridParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opm/core/eclipse/EclipseGridParser.cpp b/opm/core/eclipse/EclipseGridParser.cpp index 746794db..5e925bfe 100644 --- a/opm/core/eclipse/EclipseGridParser.cpp +++ b/opm/core/eclipse/EclipseGridParser.cpp @@ -1130,6 +1130,7 @@ void EclipseGridParser::getNumericErtFields(const string& filename) } ecl_file_close(ecl_file); #else + static_cast(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 }