quell warnings

This commit is contained in:
Arne Morten Kvarving
2019-09-04 12:50:43 +02:00
committed by Joakim Hove
parent 690cf8c43b
commit 97ad4baa99
2 changed files with 4 additions and 1 deletions

View File

@@ -112,6 +112,9 @@ macro (sources_hook)
# Append generated sources
list(APPEND opm-common_SOURCES ${PROJECT_BINARY_DIR}/ParserKeywords.cpp)
endif()
set_source_files_properties(src/opm/parser/eclipse/Python/Python.cpp
src/opm/parser/eclipse/Python/PythonInterp.cpp
PROPERTIES COMPILE_FLAGS -Wno-shadow)
endmacro (sources_hook)
macro (fortran_hook)

View File

@@ -37,7 +37,7 @@ namespace Opm {
#ifdef EMBEDDED_PYTHON
class PythonInterp {
class __attribute__ ((visibility("hidden"))) PythonInterp {
public:
bool exec(const std::string& python_code);
explicit operator bool() const { return true; }