diff --git a/src/Gui/GuiConsole.cpp b/src/Gui/GuiConsole.cpp index 3cb10b2882..764343979c 100644 --- a/src/Gui/GuiConsole.cpp +++ b/src/Gui/GuiConsole.cpp @@ -83,6 +83,8 @@ GUIConsole::~GUIConsole (void) void GUIConsole::SendLog(const std::string& notifiername, const std::string& msg, Base::LogStyle level) { + (void) notifiername; + int color = -1; switch(level){ case Base::LogStyle::Warning: @@ -100,6 +102,8 @@ void GUIConsole::SendLog(const std::string& notifiername, const std::string& msg case Base::LogStyle::Critical: color = FOREGROUND_RED | FOREGROUND_GREEN; break; + default: + break; } ::SetConsoleTextAttribute(::GetStdHandle(STD_OUTPUT_HANDLE), color); @@ -115,7 +119,7 @@ GUIConsole::~GUIConsole () {} void GUIConsole::SendLog(const std::string& notifiername, const std::string& msg, Base::LogStyle level) { (void) notifiername; - + switch(level){ case Base::LogStyle::Warning: std::cerr << "Warning: " << msg; diff --git a/src/Mod/PartDesign/App/FeatureLoft.cpp b/src/Mod/PartDesign/App/FeatureLoft.cpp index 5793728690..2e24159969 100644 --- a/src/Mod/PartDesign/App/FeatureLoft.cpp +++ b/src/Mod/PartDesign/App/FeatureLoft.cpp @@ -23,7 +23,6 @@ #include "PreCompiled.h" #ifndef _PreComp_ - # include # include # include @@ -36,6 +35,8 @@ # include #endif +#include + #include #include #include @@ -198,6 +199,7 @@ App::DocumentObjectExecReturn *Loft::execute() if (profilePoint.IsNull()) { size_t numWiresAdded = addWiresToWireSections(profileShape, wiresections); assert (numWiresAdded == wiresections.size()); + boost::ignore_unused(numWiresAdded); } else { // !profilePoint.IsNull() for (auto &wires : wiresections) wires.push_back(profilePoint); diff --git a/src/Mod/Sketcher/App/GeoList.cpp b/src/Mod/Sketcher/App/GeoList.cpp index 677acb3917..7ab9438444 100644 --- a/src/Mod/Sketcher/App/GeoList.cpp +++ b/src/Mod/Sketcher/App/GeoList.cpp @@ -25,6 +25,8 @@ # include #endif // #ifndef _PreComp_ +#include + #include #include @@ -316,6 +318,7 @@ GeoListModel::GeoListModel( // Under the Single Responsibility Principle GeoListModel cannot be made // responsible for releasing those pointers. assert(ownerT == false); + boost::ignore_unused(ownerT); } template <>