diff --git a/src/App/FeatureTest.cpp b/src/App/FeatureTest.cpp index b075a86227..430bcc5e97 100644 --- a/src/App/FeatureTest.cpp +++ b/src/App/FeatureTest.cpp @@ -22,6 +22,9 @@ #include "PreCompiled.h" +#ifndef _PreComp_ +#include +#endif #include #include @@ -140,10 +143,10 @@ DocumentObjectExecReturn *FeatureTest::execute() Enumeration enumObj4("Single item"); enumObj4.setEnums(enums); - std::ignore = enumObj4 == enumObj2; + boost::ignore_unused(enumObj4 == enumObj2); enumObj4.setEnums(nullptr); enumObj4 = enumObj2; - std::ignore = enumObj4 == enumObj4.getCStr(); + boost::ignore_unused(enumObj4 == enumObj4.getCStr()); Enumeration enumObj5(enums, enums[3]); enumObj5.isValue(enums[2]); diff --git a/src/App/Metadata.cpp b/src/App/Metadata.cpp index 029bcffc87..9ea5412be9 100644 --- a/src/App/Metadata.cpp +++ b/src/App/Metadata.cpp @@ -25,6 +25,7 @@ #ifndef _PreComp_ # include # include +# include #endif #include "Metadata.h" @@ -61,7 +62,7 @@ namespace MetadataInternal { void warning(const SAXParseException& toCatch) { // Don't deal with warnings at all - std::ignore = toCatch; + boost::ignore_unused(toCatch); } void error(const SAXParseException& toCatch) diff --git a/src/App/PreCompiled.h b/src/App/PreCompiled.h index 224d8fd73d..0c1a7b8311 100644 --- a/src/App/PreCompiled.h +++ b/src/App/PreCompiled.h @@ -88,6 +88,7 @@ // Boost #include #include +#include #include #include diff --git a/src/Gui/PreCompiled.h b/src/Gui/PreCompiled.h index d56b005c11..8a87cad0bb 100644 --- a/src/Gui/PreCompiled.h +++ b/src/Gui/PreCompiled.h @@ -84,6 +84,7 @@ #include #include #include +#include #include #include #include diff --git a/src/Gui/SoFCColorBar.cpp b/src/Gui/SoFCColorBar.cpp index 34524c4d68..604d5f5735 100644 --- a/src/Gui/SoFCColorBar.cpp +++ b/src/Gui/SoFCColorBar.cpp @@ -23,6 +23,7 @@ #include "PreCompiled.h" #ifndef _PreComp_ +# include # include # include # include @@ -221,7 +222,7 @@ SoFCColorBarBase* SoFCColorBar::getActiveBar() const void SoFCColorBar::setViewportSize( const SbVec2s& size ) { - std::ignore = size; + boost::ignore_unused(size); } void SoFCColorBar::setRange( float fMin, float fMax, int prec ) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index dad1e5b6e3..553032962c 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -162,6 +162,7 @@ #endif // _PreComp_ #include +#include #include #include @@ -4280,7 +4281,7 @@ TopoShape &TopoShape::makeTransform(const TopoShape &shape, const gp_Trsf &trsf, TopoShape &TopoShape::makeGTransform(const TopoShape &shape, const Base::Matrix4D &rclTrf, const char *op, bool copy) { - std::ignore = op; + boost::ignore_unused(op); _Shape = shape.transformGShape(rclTrf, copy); return *this; } diff --git a/src/Mod/PartDesign/Gui/PreCompiled.h b/src/Mod/PartDesign/Gui/PreCompiled.h index 5b39942baf..95c2adf47c 100644 --- a/src/Mod/PartDesign/Gui/PreCompiled.h +++ b/src/Mod/PartDesign/Gui/PreCompiled.h @@ -42,6 +42,7 @@ // Boost #include +#include // OCC #include diff --git a/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp b/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp index 644d9a8e38..b78ef5e131 100644 --- a/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp +++ b/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp @@ -24,6 +24,7 @@ #include "PreCompiled.h" #ifndef _PreComp_ +# include # include # include #endif @@ -61,7 +62,7 @@ TaskShapeBinder::TaskShapeBinder(ViewProviderShapeBinder* view, bool newObj, QWi , ui(new Ui_TaskShapeBinder) , vp(view) { - std::ignore = newObj; + boost::ignore_unused(newObj); // we need a separate container widget to add all controls to proxy = new QWidget(this);