[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:
@@ -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) {
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user