Mod/Sandbox: Remove -Wunused-result warnings.

This commit is contained in:
wmayer 2015-09-11 18:42:25 +02:00
parent 9da3580b3d
commit 731b2567b3
2 changed files with 6 additions and 2 deletions

View File

@ -81,7 +81,7 @@ private:
Base::Vector3d m1 = arc->getCenter();
//Base::Vector3d a3 = arc->getStartPoint();
Base::Vector3d a3 = arc->getEndPoint(true);
Base::Vector3d l1 = seg->getStartPoint();
//Base::Vector3d l1 = seg->getStartPoint();
Base::Vector3d l2 = seg->getEndPoint();
#if 0
Py::Module pd("FilletArc");

View File

@ -192,6 +192,7 @@ void CmdSandboxDocThreadWithSeq::activated(int iMsg)
}
seq.next(true);
}
(void)val;
}
// -------------------------------------------------------------------------------
@ -228,6 +229,7 @@ void CmdSandboxDocThreadBusy::activated(int iMsg)
val = sin(0.12345);
}
}
(void)val;
}
// -------------------------------------------------------------------------------
@ -252,10 +254,12 @@ void CmdSandboxDocumentNoThread::activated(int iMsg)
App::Document* doc = App::GetApplication().getActiveDocument();
Sandbox::DocumentProtector dp(doc);
App::DocumentObject* obj = dp.addObject("Mesh::Cube", "MyCube");
(void)obj;
dp.recompute();
App::GetApplication().closeDocument("Thread");
// this forces an exception
App::DocumentObject* obj2 = dp.addObject("Mesh::Cube", "MyCube");
(void)obj2;
dp.recompute();
}
@ -1075,7 +1079,7 @@ void CmdTestImageNode::activated(int iMsg)
roundRectPath.closeSubpath();
QLabel* l = new QLabel();
//QLabel* l = new QLabel();
//l.setText(QLatin1String("Distance: 2.784mm"));
//QPixmap p = QPixmap::grabWidget(&l, 0,0,100,100);
//l.show();