diff --git a/src/python_coupling/Manager.cpp b/src/python_coupling/Manager.cpp index 82bf23cf29fc0cb1dbdbb14985d264ed639cd0c6..13b401b675cdc706bb2fc861025048cefaa77619 100644 --- a/src/python_coupling/Manager.cpp +++ b/src/python_coupling/Manager.cpp @@ -114,7 +114,11 @@ void Manager::triggerInitialization() } catch ( boost::python::error_already_set & ) { - PyObject *type_ptr = nullptr, *value_ptr = nullptr, *traceback_ptr = nullptr; + PyObject *type_ptr = nullptr; + + PyObject *value_ptr = nullptr; + + PyObject *traceback_ptr = nullptr; PyErr_Fetch(&type_ptr, &value_ptr, &traceback_ptr); if( type_ptr ) diff --git a/src/python_coupling/basic_exports/BasicExports.cpp b/src/python_coupling/basic_exports/BasicExports.cpp index 75d0354c23e433ea64b8cc54355c1ac38bce6b8e..2d180f58f3bcfe837465486b21c1df094dea65a8 100644 --- a/src/python_coupling/basic_exports/BasicExports.cpp +++ b/src/python_coupling/basic_exports/BasicExports.cpp @@ -1143,7 +1143,13 @@ void exportStencilDirections() .value("BSW", stencil::BSW) .export_values() ; - boost::python::list cx, cy, cz, dirStrings; + boost::python::list cx; + + boost::python::list cy; + + boost::python::list cz; + + boost::python::list dirStrings; for( uint_t i=0; i < stencil::NR_OF_DIRECTIONS; ++i ) { cx.append( stencil::cx[i] );