summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQbProg <tholag@gmail.com>2011-07-24 18:15:41 +0200
committerDenis Barbier <bouzim@gmail.com>2011-07-27 20:30:45 +0200
commitab8fb6025b8ca61b83f0600d967f89d6f559bbf5 (patch)
tree1d0e24689fa21bdb962bf4afe1bb9947a5463e11
parent6b44b34fa9873ada8b90cebcf9c6120f3ece3130 (diff)
downloadoce-ab8fb6025b8ca61b83f0600d967f89d6f559bbf5.tar.gz
oce-ab8fb6025b8ca61b83f0600d967f89d6f559bbf5.zip
[warning-fix][unused-local-var]
Fixes warnings like : unused local variable 'name' or 'name' initialized but never used
-rw-r--r--src/BOPTools/BOPTools_PaveSet.cxx3
-rw-r--r--src/BRepMesh/BRepMesh_FastDiscretFace.cxx2
-rw-r--r--src/Extrema/Extrema_GenExtPS.cxx4
-rw-r--r--src/GeomFill/GeomFill_Sweep.cxx1
-rw-r--r--src/IntTools/IntTools.cxx3
-rw-r--r--src/IntTools/IntTools_EdgeFace.cxx3
-rw-r--r--src/TDF/TDF_Delta.cxx4
7 files changed, 7 insertions, 13 deletions
diff --git a/src/BOPTools/BOPTools_PaveSet.cxx b/src/BOPTools/BOPTools_PaveSet.cxx
index 6e085343..c18abfd5 100644
--- a/src/BOPTools/BOPTools_PaveSet.cxx
+++ b/src/BOPTools/BOPTools_PaveSet.cxx
@@ -61,9 +61,8 @@
anArray1OfPave(i)=aPave;
}
- BOPTools_QuickSortPave aQuickSortPave;
BOPTools_ComparePave aComparePave;
- aQuickSortPave.Sort (anArray1OfPave, aComparePave);
+ BOPTools_QuickSortPave::Sort (anArray1OfPave, aComparePave);
myPaveList.Clear();
for (i=1; i<=aNbPaves; i++){
diff --git a/src/BRepMesh/BRepMesh_FastDiscretFace.cxx b/src/BRepMesh/BRepMesh_FastDiscretFace.cxx
index 02d9a3c8..84ec8562 100644
--- a/src/BRepMesh/BRepMesh_FastDiscretFace.cxx
+++ b/src/BRepMesh/BRepMesh_FastDiscretFace.cxx
@@ -1193,8 +1193,6 @@ Standard_Real BRepMesh_FastDiscretFace::Control(const Handle(BRepAdaptor_HSurfac
Standard_Boolean caninsert;
Standard_Real sqdefface = theDefFace * theDefFace;
- Standard_Real ddu = theCaro->UResolution(theDefFace);
- Standard_Real ddv = theCaro->VResolution(theDefFace);
GeomAbs_SurfaceType thetype = theCaro->GetType();
Handle(Geom_Surface) BSpl;
diff --git a/src/Extrema/Extrema_GenExtPS.cxx b/src/Extrema/Extrema_GenExtPS.cxx
index 62ab01cd..c780fcfb 100644
--- a/src/Extrema/Extrema_GenExtPS.cxx
+++ b/src/Extrema/Extrema_GenExtPS.cxx
@@ -561,7 +561,7 @@ void Extrema_GenExtPS::Perform(const gp_Pnt& P)
Bnd_SphereUBTreeSelectorMin aSelector(mySphereArray, aSol);
//aSelector.SetMaxDist( RealLast() );
aSelector.DefineCheckPoint( P );
- Standard_Integer aNbSel = mySphereUBTree->Select( aSelector );
+ mySphereUBTree->Select( aSelector );
//TODO: check if no solution in binary tree
Bnd_Sphere& aSph = aSelector.Sphere();
@@ -576,7 +576,7 @@ void Extrema_GenExtPS::Perform(const gp_Pnt& P)
Bnd_SphereUBTreeSelectorMax aSelector(mySphereArray, aSol);
//aSelector.SetMaxDist( RealLast() );
aSelector.DefineCheckPoint( P );
- Standard_Integer aNbSel = mySphereUBTree->Select( aSelector );
+ mySphereUBTree->Select( aSelector );
//TODO: check if no solution in binary tree
Bnd_Sphere& aSph = aSelector.Sphere();
diff --git a/src/GeomFill/GeomFill_Sweep.cxx b/src/GeomFill/GeomFill_Sweep.cxx
index 053dbb71..6cc5f539 100644
--- a/src/GeomFill/GeomFill_Sweep.cxx
+++ b/src/GeomFill/GeomFill_Sweep.cxx
@@ -241,7 +241,6 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
const Standard_Integer Segmax)
{
Standard_Boolean Ok = Standard_False;
- Standard_Integer nbspan = myLoc->NbIntervals(GeomAbs_C1);
Handle(GeomFill_SweepFunction) Func
= new (GeomFill_SweepFunction) (mySec, myLoc, First, SFirst,
diff --git a/src/IntTools/IntTools.cxx b/src/IntTools/IntTools.cxx
index 19a0e38e..08d55135 100644
--- a/src/IntTools/IntTools.cxx
+++ b/src/IntTools/IntTools.cxx
@@ -206,8 +206,7 @@
anArray1OfRoots(j)=mySequenceOfRoots(j);
}
- IntTools_QuickSort aQS;
- aQS.Sort(anArray1OfRoots, aComparator);
+ IntTools_QuickSort::Sort(anArray1OfRoots, aComparator);
mySequenceOfRoots.Clear();
for (j=1; j<=aNbRoots; j++) {
diff --git a/src/IntTools/IntTools_EdgeFace.cxx b/src/IntTools/IntTools_EdgeFace.cxx
index 43b0b131..59bc3441 100644
--- a/src/IntTools/IntTools_EdgeFace.cxx
+++ b/src/IntTools/IntTools_EdgeFace.cxx
@@ -726,9 +726,8 @@ static
anArray1OfRange(n+i).SetLast (aFSeq(i));
}
- IntTools_QuickSortRange aQuickSortRange;
IntTools_CompareRange aComparator;
- aQuickSortRange.Sort (anArray1OfRange, aComparator);
+ IntTools_QuickSortRange::Sort (anArray1OfRange, aComparator);
// filling the output arrays
myArgsArray.Resize(k);
diff --git a/src/TDF/TDF_Delta.cxx b/src/TDF/TDF_Delta.cxx
index fbf48b0f..8c7334d4 100644
--- a/src/TDF/TDF_Delta.cxx
+++ b/src/TDF/TDF_Delta.cxx
@@ -151,8 +151,8 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
#endif
for (TDF_ListIteratorOfLabelList it1(aLabelList);
it1.More(); it1.Next()) {
- const TDF_Label& lab1 = it1.Value();
#ifdef DEB_DELTA
+ const TDF_Label& lab1 = it1.Value();
inList = labMap.Add(lab1);
if (!inList) {
lab1.EntryDump(cout);cout<<" | ";
@@ -170,8 +170,8 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
for (TDF_ListIteratorOfAttributeDeltaList it2(myAttDeltaList);
it2.More();
it2.Next()) {
- const TDF_Label& lab1 = it2.Value()->Label();
#ifdef DEB_DELTA
+ const TDF_Label& lab1 = it2.Value()->Label();
inList = labMap.Add(lab1);
if (!inList) {
lab1.EntryDump(cout);cout<<" | ";