From 97c91748404154b7355684b41fa0d40045a691d7 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 21 Feb 2017 22:51:26 +0100 Subject: [PATCH] fix various warnings --- src/Mod/Part/Gui/SoBrepFaceSet.cpp | 2 ++ src/Mod/Robot/App/kdl_cp/jntarray.cpp | 4 ++-- src/Mod/Sketcher/App/SketchObject.cpp | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/Gui/SoBrepFaceSet.cpp b/src/Mod/Part/Gui/SoBrepFaceSet.cpp index 538dce86f..ba10b1129 100644 --- a/src/Mod/Part/Gui/SoBrepFaceSet.cpp +++ b/src/Mod/Part/Gui/SoBrepFaceSet.cpp @@ -1013,7 +1013,9 @@ void SoBrepFaceSet::renderShape(SoGLRenderAction * action, // TODO FINISHING THE COLOR SUPPORT ! if (!PRIVATE(this)->vboLoaded || PRIVATE(this)->updateVbo) { +#ifdef FC_OS_WIN32 const cc_glglue * glue = cc_glglue_instance(action->getCacheContext()); +#endif if (PRIVATE(this)->updateVbo && PRIVATE(this)->vboLoaded) { // TODO // We must remember the buffer size ... If it has to be extended we must diff --git a/src/Mod/Robot/App/kdl_cp/jntarray.cpp b/src/Mod/Robot/App/kdl_cp/jntarray.cpp index 02358113d..c931e5ae7 100644 --- a/src/Mod/Robot/App/kdl_cp/jntarray.cpp +++ b/src/Mod/Robot/App/kdl_cp/jntarray.cpp @@ -59,13 +59,13 @@ namespace KDL double JntArray::operator()(unsigned int i,unsigned int j)const { - assert(j==0); + (void)j;assert(j==0); return data(i); } double& JntArray::operator()(unsigned int i,unsigned int j) { - assert(j==0); + (void)j;assert(j==0); return data(i); } diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index e24c54fc3..fc19c9779 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -3455,6 +3455,7 @@ int SketchObject::exposeInternalGeometry(int GeoId) } } + Q_UNUSED(isfirstweightconstrained); // constraint the first weight to allow for seamless weight modification and proper visualization /*if(!isfirstweightconstrained) {