1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0024510: Remove unused local variables

When warnings are enabled, compilers report lots of occurrences
of unused local variables, which makes it harder to find other
meaningful warnings.
This commit does not fix all unused local variables.

Fix new type conversion warning

Code cleaned to avoid MSVC compiler warnings on unused function arguments.
Several useless pieces of code are removed.
Changes in IntTools_EdgeFace.cxx, Blend_Walking_1.gxx, Bnd_BoundSortBox.cxx, ProjLib_ProjectedCurve.cxx are reverted (separated to specific issue for more in-depth analysis).
This commit is contained in:
Denis Barbier
2014-01-09 12:20:06 +04:00
committed by bugmaster
parent b467a87036
commit 96a95605cd
230 changed files with 455 additions and 1286 deletions

View File

@@ -169,6 +169,11 @@ Standard_EXPORT void StandardCallBack_Reset()
StandardCallBack_CatchID() = 0;
}
namespace {
// dummy function for break point
inline void place_for_break_point () {}
};
//=======================================================================
//function : StandardCallBack
//purpose : Callback function to register alloc/free calls
@@ -200,7 +205,6 @@ void NCollection_BaseAllocator::StandardCallBack
// statistics by alive objects
NCollection_DataMap<Standard_Address, Standard_Size>& aStIDMap = StorageIDMap();
NCollection_Map<Standard_Size>& aStIDSet = StorageIDSet();
int a;
if (theIsAlloc)
{
aStIDMap.Bind(theStorage, ++CurrentID);
@@ -208,7 +212,7 @@ void NCollection_BaseAllocator::StandardCallBack
if (CurrentID == StandardCallBack_CatchID())
{
// Place for break point for allocation of investigated ID
a = 1;
place_for_break_point();
}
}
else
@@ -220,7 +224,7 @@ void NCollection_BaseAllocator::StandardCallBack
if (anID == StandardCallBack_CatchID())
{
// Place for break point for freeing of investigated ID
a = 0;
place_for_break_point();
}
}
}