[PD] get rid of a CI compiler warning (#5335)

* [PD] get rid of a CI compiler warning

The CI compiler outputs this warning:
FeaturePad.cpp:101:20: warning: variable 'obj' set but not used [-Wunused-but-set-variable]

Co-authored-by: 0penBrain <48731257+0penBrain@users.noreply.github.com>
This commit is contained in:
Uwe
2022-01-05 12:26:48 +01:00
committed by GitHub
parent 10aae4619a
commit 6c2178d082
2 changed files with 4 additions and 4 deletions

View File

@@ -98,10 +98,10 @@ App::DocumentObjectExecReturn *Pad::execute()
Midplane.setReadOnly(hasReversed);
Reversed.setReadOnly(hasMidplane);
Part::Feature* obj = 0;
TopoDS_Shape sketchshape;
try {
obj = getVerifiedObject();
getVerifiedObject();
sketchshape = getVerifiedFace();
}
catch (const Base::Exception& e) {

View File

@@ -98,10 +98,10 @@ App::DocumentObjectExecReturn *Pocket::execute()
if ((std::string(Type.getValueAsString()) == "TwoLengths") && (L < Precision::Confusion()))
return new App::DocumentObjectExecReturn("Pocket: Second length of pocket too small");
Part::Feature* obj = 0;
TopoDS_Shape profileshape;
try {
obj = getVerifiedObject();
getVerifiedObject();
profileshape = getVerifiedFace();
} catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());