Skip to content
Snippets Groups Projects
Commit 791727b7 authored by florent's avatar florent
Browse files

Get rid of warning message

    * src/dynamic-graph-py.cc.
parent 8cae8bee
No related branches found
No related tags found
No related merge requests found
...@@ -142,8 +142,10 @@ initwrap(void) ...@@ -142,8 +142,10 @@ initwrap(void)
if (m == NULL) if (m == NULL)
return; return;
std::string msg("dynamic_graph.wrap.error");
dynamicgraph::python::error = dynamicgraph::python::error =
PyErr_NewException("dynamic_graph.wrap.error", NULL, NULL); PyErr_NewException(const_cast<char*>(msg.c_str()), NULL, NULL);
Py_INCREF(dynamicgraph::python::error); Py_INCREF(dynamicgraph::python::error);
PyModule_AddObject(m, "error", dynamicgraph::python::error); PyModule_AddObject(m, "error", dynamicgraph::python::error);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment