Commit 9fc46cef authored by Gemma Guest's avatar Gemma Guest
Browse files

Suppress compiler warning from boost

We pass the correct type of size_t to raw_function but internally it
then uses it as an int, giving a compiler warning we can do nothing
about
parent cc1c799e
......@@ -184,9 +184,17 @@ void export_leaf_classes() {
"Algorithm", "Base class for all algorithms")
.def("fromString", &Algorithm::fromString, "Initialize the algorithm from a string representation")
.staticmethod("fromString")
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4267) // Disable warning regarding conversion of size_t
// to int within raw_function, which we can do nothing about
#endif
.def("createChildAlgorithm", raw_function(&createChildWithProps, std::size_t(1)),
"Creates and intializes a named child algorithm. Output workspaces "
"are given a dummy name.")
#ifdef _MSC_VER
#pragma warning(pop)
#endif
.def("declareProperty", (declarePropertyType1)&PythonAlgorithm::declarePyAlgProperty,
declarePropertyType1_Overload((arg("self"), arg("prop"), arg("doc") = "")))
.def("enableHistoryRecordingForChild", &Algorithm::enableHistoryRecordingForChild, (arg("self"), arg("on")),
......
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