diff --git a/CMakeLists.txt b/CMakeLists.txt index aa224cb8a..b5d85ccb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/opm/parser/eclipse/Python/PythonInterp.hpp b/src/opm/parser/eclipse/Python/PythonInterp.hpp index 3ce2d4d78..a14978ff6 100644 --- a/src/opm/parser/eclipse/Python/PythonInterp.hpp +++ b/src/opm/parser/eclipse/Python/PythonInterp.hpp @@ -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; }