Commit 791727b7 authored by florent's avatar florent
Browse files

Get rid of warning message

    * src/dynamic-graph-py.cc.
parent 8cae8bee
......@@ -142,8 +142,10 @@ initwrap(void)
if (m == NULL)
return;
std::string msg("dynamic_graph.wrap.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);
PyModule_AddObject(m, "error", dynamicgraph::python::error);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment