diff --git a/CMakeLists.txt b/CMakeLists.txt
index 43dab9ae9914bd0faaf3b313ffb4337caaf1f445..42d78a509a545a80613fec95ff7bc646f237e3ed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -597,7 +597,8 @@ if ( WALBERLA_BUILD_WITH_PYTHON )
     endif()
 
     add_subdirectory(extern/pybind11)
-    include_directories( ${PYBIND11_INCLUDE_DIR} )
+    include_directories( SYSTEM ${PYBIND11_INCLUDE_DIR} )
+    add_flag( CMAKE_CXX_FLAGS -fvisibility=hidden )
     set ( waLBerla_REQUIRED_MIN_PYTHON_VERSION "2.7")
 
     find_package( PythonInterp 3 QUIET) # search for Python3 first
diff --git a/src/python_coupling/PythonCallback.cpp b/src/python_coupling/PythonCallback.cpp
index 1c82aea07b5c8be1def2b83f17585c3650c4414d..0cabbd64a9b4b799123014f183ad69b54fb5480d 100644
--- a/src/python_coupling/PythonCallback.cpp
+++ b/src/python_coupling/PythonCallback.cpp
@@ -35,7 +35,7 @@
 namespace walberla {
 namespace python_coupling {
 
-   static py::module importModuleOrFileInternal( const std::string & fileOrModuleName, const std::vector< std::string > & argv )
+   static py::module importModuleOrFileInternal( const std::string & fileOrModuleName, const std::vector< std::string > & /*argv*/ )
    {
       auto manager = python_coupling::Manager::instance();
       manager->triggerInitialization();
diff --git a/src/python_coupling/basic_exports/BasicExports.cpp b/src/python_coupling/basic_exports/BasicExports.cpp
index be2493aabc32dc2b241aebac6cbbf575764f8c53..7aabcbd8fefd32da48a47ab3de538aca0d00cca5 100644
--- a/src/python_coupling/basic_exports/BasicExports.cpp
+++ b/src/python_coupling/basic_exports/BasicExports.cpp
@@ -523,6 +523,7 @@ void exportTiming(py::module_ &m)
          .def( "unifyRegisteredTimersAcrossProcesses", &WcTimingPool::unifyRegisteredTimersAcrossProcesses )
          .def( "logResultOnRoot", &WcTimingPool::logResultOnRoot)
          ;
+      WALBERLA_UNUSED( classScope );
 
       py::enum_<timing::ReduceType>(m, "ReduceType")
           .value("min"  , timing::REDUCE_MIN)
diff --git a/tests/pe/SyncEquivalence.cpp b/tests/pe/SyncEquivalence.cpp
index d17e2f0f19d3e14fc3c128f4a386711479726b23..6c03180186aaf7f4bb42e26bc7930414269ee6c9 100644
--- a/tests/pe/SyncEquivalence.cpp
+++ b/tests/pe/SyncEquivalence.cpp
@@ -18,8 +18,6 @@
 //
 //======================================================================================================================
 
-#include "python_coupling/DictWrapper.h"
-
 #include "blockforest/all.h"
 #include "core/all.h"
 #include "domain_decomposition/all.h"