ports/math/ogdf/files/patch-src_coin_OsiClp_OsiClpSolverInterface.cpp
Ben Woods c59700567b math/ogdf: unbreak build with Clang 6 (C++14 by default)
The bundled version of CoinMP required the same patches as those applied
to the port math/coinmp, so the patches were copied from there.

Submitted by:	jbeich (via commit r458136)
Reported by:	antoine (via bug 224669)
2018-03-01 12:09:48 +00:00

15 lines
765 B
C++

OsiClpSolverInterface.cpp:1451:50: error: reinterpret_cast from 'nullptr_t' to 'int *' is not allowed
messagesPointer->setDetailMessages(100,10000,reinterpret_cast<int *> (NULL));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- src/coin/OsiClp/OsiClpSolverInterface.cpp.orig 2015-05-29 15:36:45 UTC
+++ src/coin/OsiClp/OsiClpSolverInterface.cpp
@@ -1422,7 +1422,7 @@ OsiClpSolverInterface::setupForRepeatedUse(int senseOf
if (stopPrinting) {
CoinMessages * messagesPointer = modelPtr_->messagesPointer();
// won't even build messages
- messagesPointer->setDetailMessages(100,10000,reinterpret_cast<int *> (NULL));
+ messagesPointer->setDetailMessages(100,10000,static_cast<int *> (NULL));
}
#endif
}