Mod/Sandbox: Remove -Wunused-result warnings.
This commit is contained in:
parent
9da3580b3d
commit
731b2567b3
|
@ -81,7 +81,7 @@ private:
|
||||||
Base::Vector3d m1 = arc->getCenter();
|
Base::Vector3d m1 = arc->getCenter();
|
||||||
//Base::Vector3d a3 = arc->getStartPoint();
|
//Base::Vector3d a3 = arc->getStartPoint();
|
||||||
Base::Vector3d a3 = arc->getEndPoint(true);
|
Base::Vector3d a3 = arc->getEndPoint(true);
|
||||||
Base::Vector3d l1 = seg->getStartPoint();
|
//Base::Vector3d l1 = seg->getStartPoint();
|
||||||
Base::Vector3d l2 = seg->getEndPoint();
|
Base::Vector3d l2 = seg->getEndPoint();
|
||||||
#if 0
|
#if 0
|
||||||
Py::Module pd("FilletArc");
|
Py::Module pd("FilletArc");
|
||||||
|
|
|
@ -192,6 +192,7 @@ void CmdSandboxDocThreadWithSeq::activated(int iMsg)
|
||||||
}
|
}
|
||||||
seq.next(true);
|
seq.next(true);
|
||||||
}
|
}
|
||||||
|
(void)val;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
|
@ -228,6 +229,7 @@ void CmdSandboxDocThreadBusy::activated(int iMsg)
|
||||||
val = sin(0.12345);
|
val = sin(0.12345);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
(void)val;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
|
@ -252,10 +254,12 @@ void CmdSandboxDocumentNoThread::activated(int iMsg)
|
||||||
App::Document* doc = App::GetApplication().getActiveDocument();
|
App::Document* doc = App::GetApplication().getActiveDocument();
|
||||||
Sandbox::DocumentProtector dp(doc);
|
Sandbox::DocumentProtector dp(doc);
|
||||||
App::DocumentObject* obj = dp.addObject("Mesh::Cube", "MyCube");
|
App::DocumentObject* obj = dp.addObject("Mesh::Cube", "MyCube");
|
||||||
|
(void)obj;
|
||||||
dp.recompute();
|
dp.recompute();
|
||||||
App::GetApplication().closeDocument("Thread");
|
App::GetApplication().closeDocument("Thread");
|
||||||
// this forces an exception
|
// this forces an exception
|
||||||
App::DocumentObject* obj2 = dp.addObject("Mesh::Cube", "MyCube");
|
App::DocumentObject* obj2 = dp.addObject("Mesh::Cube", "MyCube");
|
||||||
|
(void)obj2;
|
||||||
dp.recompute();
|
dp.recompute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1075,7 +1079,7 @@ void CmdTestImageNode::activated(int iMsg)
|
||||||
roundRectPath.closeSubpath();
|
roundRectPath.closeSubpath();
|
||||||
|
|
||||||
|
|
||||||
QLabel* l = new QLabel();
|
//QLabel* l = new QLabel();
|
||||||
//l.setText(QLatin1String("Distance: 2.784mm"));
|
//l.setText(QLatin1String("Distance: 2.784mm"));
|
||||||
//QPixmap p = QPixmap::grabWidget(&l, 0,0,100,100);
|
//QPixmap p = QPixmap::grabWidget(&l, 0,0,100,100);
|
||||||
//l.show();
|
//l.show();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user