[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23

Denis Barbier bouzim at gmail.com
Fri Feb 24 18:50:13 UTC 2012


The following commit has been merged in the upstream branch:
commit e716bed354e9b136c2e858206ff83b96cdd5fce4
Author: Denis Barbier <bouzim at gmail.com>
Date:   Sun Dec 18 00:31:58 2011 +0100

    [warning-fix][unused-local-var]

diff --git a/inc/AppParCurves_LeastSquare.gxx b/inc/AppParCurves_LeastSquare.gxx
index 343eb24..ae95656 100644
--- a/inc/AppParCurves_LeastSquare.gxx
+++ b/inc/AppParCurves_LeastSquare.gxx
@@ -486,7 +486,7 @@ void AppParCurves_LeastSquare::Perform(const math_Vector& Parameters) {
     math_Vector myTABB(1, Nincx, 0.0);
     
     MakeTAA(TheAA, mytab);
-    Standard_Integer Error = DACTCL_Decompose(TheAA, Index);
+    DACTCL_Decompose(TheAA, Index);
     
     Standard_Integer kk2;
     for (j = 1; j <= B2.ColNumber(); j++) {
@@ -495,7 +495,7 @@ void AppParCurves_LeastSquare::Perform(const math_Vector& Parameters) {
 	myTABB(kk2) = mytab(i, j);
 	kk2++;
       }
-      Error = DACTCL_Solve(TheAA, myTABB, Index);
+      DACTCL_Solve(TheAA, myTABB, Index);
       
       i2 = 1;
       for (k = resinit; k <= resfin; k++) {
@@ -854,7 +854,7 @@ void AppParCurves_LeastSquare::Perform(const math_Vector&  Parameters,
 
   math_Vector myTABB(1, Nincx, 0.0);
 
-  Standard_Integer Error = DACTCL_Decompose(AA, Index);
+  DACTCL_Decompose(AA, Index);
   
   Standard_Integer kk2;
   for (j = 1; j <= B2.ColNumber(); j++) {
@@ -864,7 +864,7 @@ void AppParCurves_LeastSquare::Perform(const math_Vector&  Parameters,
       kk2++;
     }
     
-    Error = DACTCL_Solve(AA, myTABB, Index);
+    DACTCL_Solve(AA, myTABB, Index);
     
     i2 = 1;
     for (k = resinit; k <= resfin; k++) {
diff --git a/inc/AppParCurves_ResolConstraint.gxx b/inc/AppParCurves_ResolConstraint.gxx
index d24aaf1..65ce407 100644
--- a/inc/AppParCurves_ResolConstraint.gxx
+++ b/inc/AppParCurves_ResolConstraint.gxx
@@ -63,7 +63,6 @@ AppParCurves_ResolConstraint::
   Standard_Integer myindex, Def = SCurv.NbPoles()-1;    
   Standard_Integer nb3d, nb2d, Npol= Def+1, Npol2 = 2*Npol;
   Standard_Real T1 = 0, T2, T3, Tmax, Daij;
-  Standard_Boolean Ok;
   gp_Vec V;
   gp_Vec2d V2d;
   gp_Pnt Poi;
@@ -149,7 +148,7 @@ AppParCurves_ResolConstraint::
       for (i = 1; i <= IncTan; i++) {
 	Npt = ITan(i);
 	// choix du maximum de tangence pour exprimer la colinearite:
-	Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	ToolLine::Tangency(SSP, Npt, tabV);
 	V = tabV(k);
 	V.Coord(T1, T2, T3);
 	Tmax = Abs(T1);
@@ -216,7 +215,7 @@ AppParCurves_ResolConstraint::
     else {
       for (i = 1; i <= IncTan; i++) {
 	Npt = ITan(i);
-	Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	ToolLine::Tangency(SSP, Npt, tabV2d);
 	V2d = tabV2d(k-nb3d);
 	T1 = V2d.X();
 	T2 = V2d.Y();
@@ -264,25 +263,25 @@ AppParCurves_ResolConstraint::
       Inc3 = Inc3 + 1;
       if (Ibont(k, i) == 1) {
 	if (k <= nb3d) {
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k);
 	  T1 = V.X(); 
 	  IP = 3*Npol;
 	}
 	else { 
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	  ToolLine::Tangency(SSP, Npt, tabV2d);
 	  V2d = tabV2d(k-nb3d);
 	  T1 = V2d.X(); 
 	  IP = 2*Npol;
 	}
 	if (Ibont(k+1, i) == 1) {  // Relations entre T1x et T2x:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.X();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1-nb3d);
 	    T2 = V2d.X();
 	  }
@@ -295,12 +294,12 @@ AppParCurves_ResolConstraint::
 	}
 	else if (Ibont(k+1, i) == 2) {  // Relations entre T1x et T2y:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.Y();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1-nb3d);
 	    T2 = V2d.Y();
 	  }
@@ -312,7 +311,7 @@ AppParCurves_ResolConstraint::
 	  IncCol = IncCol + IP;
 	}
 	else if (Ibont(k+1,i) == 3) {    // Relations entre T1x et T2z:
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k+1);
 	  T2 = V.Z();
 	  for (j = 1; j <=  Npol; j++) {
@@ -325,24 +324,24 @@ AppParCurves_ResolConstraint::
       }
       else if (Ibont(k,i) == 2) {  
 	if (k <= nb3d) { 
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k);
 	  IP = 3*Npol;
 	}
 	else { 
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	  ToolLine::Tangency(SSP, Npt, tabV2d);
 	  V2d = tabV2d(k-nb3d);
 	  T1 = V2d.Y();
 	  IP = 2*Npol;
 	}
 	if (Ibont(k+1, i) == 1) {  // Relations entre T1y et T2x:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.X();
 	  }
 	  else {
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1-nb3d);
 	    T2 = V2d.X();
 	  }
@@ -356,12 +355,12 @@ AppParCurves_ResolConstraint::
 	}
 	else if (Ibont(k+1, i) == 2) {  // Relations entre T1y et T2y:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.Y();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1-nb3d);
 	    T2 = V2d.Y();
 	  }
@@ -374,7 +373,7 @@ AppParCurves_ResolConstraint::
 
 	}
 	else if (Ibont(k+1,i)== 3) {    // Relations entre T1y et T2z:
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k+1);
 	  T2 = V.Z();
 	  for (j = 1; j <=  Npol; j++) {
@@ -387,18 +386,18 @@ AppParCurves_ResolConstraint::
       }
 
       else {
-	Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	ToolLine::Tangency(SSP, Npt, tabV);
 	V = tabV(k);
 	T1 = V.Z();
 	IP = 3*Npol;
 	if (Ibont(k+1, i) == 1) {  // Relations entre T1z et T2x:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.X();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1-nb3d);
 	    T2 = V2d.X();
 	  }
@@ -412,12 +411,12 @@ AppParCurves_ResolConstraint::
 
 	else if (Ibont(k+1, i) == 2) {  // Relations entre T1z et T2y:   
 	  if ((k+1) <= nb3d) {
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.Y();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1-nb3d);
 	    T2 = V2d.Y();
 	  }
@@ -430,7 +429,7 @@ AppParCurves_ResolConstraint::
 	}
 
 	else if (Ibont(k+1,i)==3) {      // Relations entre T1z et T2z:
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k+1);
 	  T2 = V.Z();
 	  for (j = 1; j <=  Npol; j++) {
@@ -623,7 +622,6 @@ const math_Matrix& AppParCurves_ResolConstraint::
   Standard_Integer IP;
   Standard_Real Daij;
   Npol = Deg+1; Npol2 = 2*Npol;
-  Standard_Boolean Ok;
   TColStd_Array2OfInteger Ibont(1, NbCu, 1, IncTan);
   math_Matrix DeCInit(1, IncPass, 1, Npol);
   math_Vector DDA(1, Npol);
@@ -670,7 +668,7 @@ const math_Matrix& AppParCurves_ResolConstraint::
 	Npt = ITan(i);
 //	MultiPoint MPoint = ToolLine::Value(SSP, Npt);
 	// choix du maximum de tangence pour exprimer la colinearite:
-	Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	ToolLine::Tangency(SSP, Npt, tabV);
 	V = tabV(k);
 	V.Coord(T1, T2, T3);
 	Tmax = Abs(T1);
@@ -719,7 +717,7 @@ const math_Matrix& AppParCurves_ResolConstraint::
       for (i = 1; i <= IncTan; i++) {
 	Npt = ITan(i);
 	AppParCurves::SecondDerivativeBernstein(Parameters(Npt), DDA);
-	Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	ToolLine::Tangency(SSP, Npt, tabV2d);
 	V2d = tabV2d(k);
 	V2d.Coord(T1, T2);
 	Tmax = Abs(T1);
@@ -751,25 +749,25 @@ const math_Matrix& AppParCurves_ResolConstraint::
       Inc3 = Inc3 + 1;
       if (Ibont(k, i) == 1) {
 	if (k <= nb3d) {
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k);
 	  T1 = V.X(); 
 	  IP = 3*Npol;
 	}
 	else { 
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	  ToolLine::Tangency(SSP, Npt, tabV2d);
 	  V2d = tabV2d(k);
 	  T1 = V2d.X(); 
 	  IP = 2*Npol;
 	}
 	if (Ibont(k+1, i) == 1) {  // Relations entre T1x et T2x:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.X();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1);
 	    T2 = V2d.X();
 	  }
@@ -782,12 +780,12 @@ const math_Matrix& AppParCurves_ResolConstraint::
 	}
 	else if (Ibont(k+1, i) == 2) {  // Relations entre T1x et T2y:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.Y();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1);
 	    T2 = V2d.Y();
 	  }
@@ -799,7 +797,7 @@ const math_Matrix& AppParCurves_ResolConstraint::
 	  IncCol = IncCol + IP;
 	}
 	else if (Ibont(k+1,i) == 3) {    // Relations entre T1x et T2z:
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k+1);
 	  T2 = V.Z();
 	  for (j = 1; j <=  Npol; j++) {
@@ -812,25 +810,25 @@ const math_Matrix& AppParCurves_ResolConstraint::
       }
       else if (Ibont(k,i) == 2) {  
 	if (k <= nb3d) { 
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k);
 	  T1 = V.Y();
 	  IP = 3*Npol;
 	}
 	else { 
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	  ToolLine::Tangency(SSP, Npt, tabV2d);
 	  V2d = tabV2d(k);
 	  T1 = V2d.Y();
 	  IP = 2*Npol;
 	}
 	if (Ibont(k+1, i) == 1) {  // Relations entre T1y et T2x:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.X();
 	  }
 	  else {
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1);
 	    T2 = V2d.X();
 	  }
@@ -844,12 +842,12 @@ const math_Matrix& AppParCurves_ResolConstraint::
 	}
 	else if (Ibont(k+1, i) == 2) {  // Relations entre T1y et T2y:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.Y();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1);
 	    T2 = V2d.Y();
 	  }
@@ -862,7 +860,7 @@ const math_Matrix& AppParCurves_ResolConstraint::
 
 	}
 	else if (Ibont(k+1,i)== 3) {    // Relations entre T1y et T2z:
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k+1);
 	  T2 = V.Z();
 	  for (j = 1; j <=  Npol; j++) {
@@ -875,18 +873,18 @@ const math_Matrix& AppParCurves_ResolConstraint::
       }
 
       else {
-	Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	ToolLine::Tangency(SSP, Npt, tabV);
 	V = tabV(k);
 	T1 = V.Z();
 	IP = 3*Npol;
 	if (Ibont(k+1, i) == 1) {  // Relations entre T1z et T2x:
 	  if ((k+1) <= nb3d) { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.X();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1);
 	    T2 = V2d.X();
 	  }
@@ -900,12 +898,12 @@ const math_Matrix& AppParCurves_ResolConstraint::
 
 	else if (Ibont(k+1, i) == 2) {  // Relations entre T1z et T2y:   
 	  if ((k+1) <= nb3d) {
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	    ToolLine::Tangency(SSP, Npt, tabV);
 	    V = tabV(k+1);
 	    T2 = V.Y();
 	  }
 	  else { 
-	    Ok = ToolLine::Tangency(SSP, Npt, tabV2d);
+	    ToolLine::Tangency(SSP, Npt, tabV2d);
 	    V2d = tabV2d(k+1);
 	    T2 = V2d.Y();
 	  }
@@ -918,7 +916,7 @@ const math_Matrix& AppParCurves_ResolConstraint::
 	}
 
 	else if (Ibont(k+1,i)==3) {      // Relations entre T1z et T2z:
-	  Ok = ToolLine::Tangency(SSP, Npt, tabV);
+	  ToolLine::Tangency(SSP, Npt, tabV);
 	  V = tabV(k+1);
 	  T2 = V.Z();
 	  for (j = 1; j <=  Npol; j++) {
diff --git a/inc/Blend_CSWalking_2.gxx b/inc/Blend_CSWalking_2.gxx
index 63e757f..cbdaff9 100644
--- a/inc/Blend_CSWalking_2.gxx
+++ b/inc/Blend_CSWalking_2.gxx
@@ -155,7 +155,7 @@ Blend_Status Blend_CSWalking::CheckDeflectionOnSurf
 
   Standard_Real Norme, prevNorme, Cosi, Cosi2; // JAG MODIF 25.04.94
   Standard_Real FlecheCourante;
-  Standard_Real Du,Dv,Duv,SqrtDuv;
+  Standard_Real Du,Dv,Duv;
   Standard_Real paramu,paramv,tolu,tolv;
 //  TColgp_Array1OfPnt Poles(1,4);
 //  gp_Pnt POnCurv,Milieu;
@@ -193,7 +193,6 @@ Blend_Status Blend_CSWalking::CheckDeflectionOnSurf
   Du = Ponsurf.X() - paramu;
   Dv = Ponsurf.Y() - paramv;
   Duv = Du * Du + Dv * Dv;
-  SqrtDuv = Sqrt(Duv);
   if ((Abs(Du) < tolu && Abs(Dv) < tolv) ||  // JAG MODIF 25.04.94
       (Abs(previousd2d.X()) < tolu && Abs(previousd2d.Y()) < tolv)){
     // il faudra peut etre  forcer meme point   JAG MODIF 25.04.94
diff --git a/inc/Blend_Walking_1.gxx b/inc/Blend_Walking_1.gxx
index 1eb458e..49279bd 100644
--- a/inc/Blend_Walking_1.gxx
+++ b/inc/Blend_Walking_1.gxx
@@ -168,8 +168,6 @@ Standard_Boolean Blend_Walking::PerformFirstSection
 
   Pos1 = Pos2 = TopAbs_UNKNOWN;
 
-  Blend_Status State;
-
   param = Pdep;
   Func.Set(param);
 
@@ -193,7 +191,7 @@ Standard_Boolean Blend_Walking::PerformFirstSection
     return Standard_False;
   }
 
-  State = TestArret(Func, Blend_OK, Standard_False);
+  TestArret(Func, Blend_OK, Standard_False);
 #ifdef DEB
   if (Blend_GettraceDRAWSECT()){
     Drawsect(surf1,surf2,sol,param,Func);
diff --git a/inc/GCPnts_TangentialDeflection.gxx b/inc/GCPnts_TangentialDeflection.gxx
index ebfb5e2..997c9cd 100644
--- a/inc/GCPnts_TangentialDeflection.gxx
+++ b/inc/GCPnts_TangentialDeflection.gxx
@@ -355,8 +355,6 @@ void GCPnts_TangentialDeflection::PerformCurve (const TheCurve& C)
     TooSmall   = Standard_False;
     Correction = Standard_True;
 
-    Standard_Real lastCoef = 0;
-     
     while (Correction) {                     //Ajustement Du
       MiddleU = (U1+U2)*0.5;                 //Verif / au point milieu
       D0 (C, MiddleU, MiddlePoint);
@@ -401,7 +399,6 @@ void GCPnts_TangentialDeflection::PerformCurve (const TheCurve& C)
           }
           else {
             TooSmall = Standard_True;
-            lastCoef = Coef;
             //Standard_Real UUU2 = U2;
             Du += Min((U2-U1)*(1.-Coef), Du*Us3);
 
diff --git a/inc/GProp_SGProps.gxx b/inc/GProp_SGProps.gxx
index da301c9..e753623 100644
--- a/inc/GProp_SGProps.gxx
+++ b/inc/GProp_SGProps.gxx
@@ -420,7 +420,7 @@ static void Compute(Face& S, Domain& D, const gp_Pnt& loc, Standard_Real& dim, g
    Standard_Integer NbCGaussgp_Pnts = 0;
 
    Standard_Real l1, l2, lm, lr, l;   //boundary curve parametrization
-   Standard_Real v1, v2, vm, vr, v;   //Face parametrization in v direction
+   Standard_Real v1, v2, v;   //Face parametrization in v direction
    Standard_Real u1, u2, um, ur, u;
    Standard_Real ds;                  //Jacobien (x, y, z) -> (u, v) = ||n||
 
@@ -474,9 +474,7 @@ static void Compute(Face& S, Domain& D, const gp_Pnt& loc, Standard_Real& dim, g
       lr = 0.5 * (l2 - l1);
 
       Puv = S.Value2d (lm);
-      vm  = Puv.Y();
       Puv = S.Value2d (lr);
-      vr  = Puv.Y();
 
       for (Standard_Integer i = 1; i <= NbCGaussgp_Pnts; i++) {
         l = lm + lr * GaussCP (i);
diff --git a/inc/GccGeo_Circ2d2TanOn.gxx b/inc/GccGeo_Circ2d2TanOn.gxx
index 4fe7b90..4a490ae 100644
--- a/inc/GccGeo_Circ2d2TanOn.gxx
+++ b/inc/GccGeo_Circ2d2TanOn.gxx
@@ -141,7 +141,6 @@ GccGeo_Circ2d2TanOn::
 	    Standard_Real dist1 = Center.Distance(C1.Location());
 	    Standard_Real dist2 = Center.Distance(C2.Location());
 	    Standard_Integer nbsol = 0;
-	    Standard_Integer nsol = 0;
 	    Standard_Integer nnsol = 0;
 	    R1 = C1.Radius();
 	    R2 = C2.Radius();
@@ -168,22 +167,18 @@ GccGeo_Circ2d2TanOn::
 	    }
 	    if (Qualified2.IsEnclosed() && nbsol != 0) {
 	      if (dist2-R2 < Tol) {
-		nsol = 1;
 		RBid(1) = Abs(R2-dist2);
 	      }
 	    }
 	    else if (Qualified2.IsOutside() && nbsol != 0) {
 	      if (R2-dist2 < Tol) {
-		nsol = 1;
 		RBid(1) = Abs(R2-dist2);
 	      }
 	    }
 	    else if (Qualified2.IsEnclosing() && nbsol != 0) {
-	      nsol = 1;
 	      RBid(1) = dist2+R2;
 	    }
 	    else if (Qualified2.IsUnqualified() && nbsol != 0) {
-	      nsol = 1;
 	      RBid(1) = dist2+R2;
 	      RBid(2) = Abs(R2-dist2);
 	    }
diff --git a/inc/GccIter_Circ2d2TanOn.gxx b/inc/GccIter_Circ2d2TanOn.gxx
index 3d49d1f..bc81629 100644
--- a/inc/GccIter_Circ2d2TanOn.gxx
+++ b/inc/GccIter_Circ2d2TanOn.gxx
@@ -99,11 +99,7 @@ GccIter_Circ2d2TanOn::
        gp_Vec2d Vec2(point2,point3);
        Standard_Real normevec1 = Vec1.Magnitude();
        Standard_Real normevec2 = Vec2.Magnitude();
-       Standard_Real angle1,angle2;
-       if (normevec1 >= gp::Resolution() && normetan1 >= gp::Resolution()) {
-	 angle1 = Vec1.Angle(Tan1);
-       }
-       else { angle1 = 0.; }
+       Standard_Real angle2;
        if (normevec2 >= gp::Resolution() && normetan2 >= gp::Resolution()) {
 	 angle2 = Vec2.Angle(Tan2);
        }
@@ -411,11 +407,7 @@ GccIter_Circ2d2TanOn::
        gp_Vec2d Vec2(point2,point3);
        Standard_Real normevec1 = Vec1.Magnitude();
        Standard_Real normevec2 = Vec2.Magnitude();
-       Standard_Real angle1,angle2;
-       if (normevec1 >= gp::Resolution() && normetan1 >= gp::Resolution()) {
-	 angle1 = Vec1.Angle(Tan1);
-       }
-       else { angle1 = 0.; }
+       Standard_Real angle2;
        if (normevec2 >= gp::Resolution() && normetan2 >= gp::Resolution()) {
 	 angle2 = Vec2.Angle(Tan2);
        }
@@ -526,11 +518,7 @@ GccIter_Circ2d2TanOn::
        gp_Vec2d Vec2(point2,point3);
        Standard_Real normevec1 = Vec1.Magnitude();
        Standard_Real normevec2 = Vec2.Magnitude();
-       Standard_Real angle1,angle2;
-       if (normevec1 >= gp::Resolution() && normetan1 >= gp::Resolution()) {
-	 angle1 = Vec1.Angle(Tan1);
-       }
-       else { angle1 = 0.; }
+       Standard_Real angle2;
        if (normevec2 >= gp::Resolution() && normetan2 >= gp::Resolution()) {
 	 angle2 = Vec2.Angle(Tan2);
        }
@@ -640,11 +628,7 @@ GccIter_Circ2d2TanOn::
        gp_Vec2d Vec2(point2,point3);
        Standard_Real normevec1 = Vec1.Magnitude();
        Standard_Real normevec2 = Vec2.Magnitude();
-       Standard_Real angle1,angle2;
-       if (normevec1 >= gp::Resolution() && normetan1 >= gp::Resolution()) {
-	 angle1 = Vec1.Angle(Tan1);
-       }
-       else { angle1 = 0.; }
+       Standard_Real angle2;
        if (normevec2 >= gp::Resolution() && normetan2 >= gp::Resolution()) {
 	 angle2 = Vec2.Angle(Tan2);
        }
@@ -1061,11 +1045,7 @@ GccIter_Circ2d2TanOn::
        gp_Vec2d Vec2(point2.XY(),point3.XY());
        Standard_Real normevec1 = Vec1.Magnitude();
        Standard_Real normevec2 = Vec2.Magnitude();
-       Standard_Real angle1,angle2;
-       if (normevec1 >= gp::Resolution() && normetan1 >= gp::Resolution()) {
-	 angle1 = Vec1.Angle(Tan1);
-       }
-       else { angle1 = 0.; }
+       Standard_Real angle2;
        if (normevec2 >= gp::Resolution() && normetan2 >= gp::Resolution()) {
 	 angle2 = Vec2.Angle(Tan2);
        }
@@ -1171,11 +1151,7 @@ GccIter_Circ2d2TanOn::
        gp_Vec2d Vec2(point2,point3);
        Standard_Real normevec1 = Vec1.Magnitude();
        Standard_Real normevec2 = Vec2.Magnitude();
-       Standard_Real angle1,angle2;
-       if (normevec1 >= gp::Resolution() && normetan1 >= gp::Resolution()) {
-	 angle1 = Vec1.Angle(Tan1);
-       }
-       else { angle1 = 0.; }
+       Standard_Real angle2;
        if (normevec2 >= gp::Resolution() && normetan2 >= gp::Resolution()) {
 	 angle2 = Vec2.Angle(Tan2);
        }
diff --git a/inc/IntCurve_Polygon2dGen.gxx b/inc/IntCurve_Polygon2dGen.gxx
index 5be3c41..41b5f32 100644
--- a/inc/IntCurve_Polygon2dGen.gxx
+++ b/inc/IntCurve_Polygon2dGen.gxx
@@ -312,17 +312,9 @@ void IntCurve_Polygon2dGen::ComputeWithBox(const TheCurve&        C,
 		Standard_Real u1m = 0.5*(u+TheParams.Value(TheIndex.Value(i-1)));
 		Standard_Real um2 = 0.5*(u+TheParams.Value(TheIndex.Value(i+1)));
 		gp_Pnt2d P1m = TheCurveTool::Value(C,u1m);
-#ifdef DEB
-		gp_Pnt2d Pm2 = TheCurveTool::Value(C,um2);
-#else
-                TheCurveTool::Value(C,um2);
-#endif
+        TheCurveTool::Value(C,um2);
 		gp_Lin2d L1m(P1,gp_Dir2d(gp_Vec2d(P1,Pm)));
-#ifdef DEB
-		gp_Lin2d Lm2(Pm,gp_Dir2d(gp_Vec2d(Pm,ThePnts.Value(TheIndex.Value(i+1)))));
-#else
-                ThePnts.Value(TheIndex.Value(i+1));
-#endif
+        ThePnts.Value(TheIndex.Value(i+1));
 		t = L1m.Distance(P1m);
 		i--; 
 	      }
diff --git a/inc/IntPatch_ImpImpIntersection_4.gxx b/inc/IntPatch_ImpImpIntersection_4.gxx
index bedbf7f..e0d7400 100644
--- a/inc/IntPatch_ImpImpIntersection_4.gxx
+++ b/inc/IntPatch_ImpImpIntersection_4.gxx
@@ -875,7 +875,6 @@ Standard_Boolean IntCyCo(const IntSurf_Quadric& Quad1,
       IntAna_Curve aC;
       IntAna_ListOfCurve aLC;
       IntAna_ListIteratorOfListOfCurve aIt;
-      Standard_Boolean bToSplit;
       
       //
       NbSol = anaint.NbCurve();
@@ -884,7 +883,7 @@ Standard_Boolean IntCyCo(const IntSurf_Quadric& Quad1,
 	//curvsol = anaint.Curve(i);
 	aC=anaint.Curve(i);
 	aLC.Clear();
-	bToSplit=ExploreCurve(Cy, Co, aC, 10.*Tol, aLC);
+	ExploreCurve(Cy, Co, aC, 10.*Tol, aLC);
 	//
 	aIt.Initialize(aLC);
 	for (; aIt.More(); aIt.Next()) {
diff --git a/inc/IntPatch_ImpImpIntersection_5.gxx b/inc/IntPatch_ImpImpIntersection_5.gxx
index 9c1330c..8c0d762 100644
--- a/inc/IntPatch_ImpImpIntersection_5.gxx
+++ b/inc/IntPatch_ImpImpIntersection_5.gxx
@@ -190,7 +190,6 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 
   case IntAna_Circle:
     {
-      Standard_Real para;
       IntPatch_Point aPtsol;
       gp_Vec Tgt;
       gp_Pnt ptref;
@@ -216,7 +215,7 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 	  Quad2.Parameters(aPChar, U2, V2);
 	  aPtsol.SetValue(aPChar, Tol, Standard_False);
 	  aPtsol.SetParameters(U1, V1, U2, V2);
-	  para = ElCLib::Parameter(cirsol, aPChar);
+	  ElCLib::Parameter(cirsol, aPChar);
 	  aPtsol.SetParameter(0.);
 	  glig->AddVertex(aPtsol);
 	}
@@ -228,7 +227,6 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 
   case IntAna_Ellipse:
     {
-      Standard_Real para;
       IntPatch_Point aPtsol;
       gp_Elips elipsol = inter.Ellipse(1);
       
@@ -255,7 +253,7 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 	Quad2.Parameters(aPChar, U2, V2);
 	aPtsol.SetValue(aPChar, Tol, Standard_False);
 	aPtsol.SetParameters(U1, V1, U2, V2);
-	para = ElCLib::Parameter(elipsol, aPChar);
+	ElCLib::Parameter(elipsol, aPChar);
 	aPtsol.SetParameter(0.);
 	glig->AddVertex(aPtsol);
       }
@@ -267,7 +265,6 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 
   case IntAna_Hyperbola:
     {
-      Standard_Real para;
       IntPatch_Point aPtsol;
       gp_Vec Tgt;
       gp_Pnt ptref;
@@ -293,7 +290,7 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 	  Quad2.Parameters(aPChar, U2, V2);
 	  aPtsol.SetValue(aPChar, Tol, Standard_False);
 	  aPtsol.SetParameters(U1, V1, U2, V2);
-	  para = ElCLib::Parameter(hyprsol, aPChar);
+	  ElCLib::Parameter(hyprsol, aPChar);
 	  aPtsol.SetParameter(0.);
 	  glig->AddVertex(aPtsol);
 	}
@@ -304,7 +301,6 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
     
   case IntAna_Parabola:
     {
-      Standard_Real para;
       IntPatch_Point aPtsol;
       gp_Parab parabsol = inter.Parabola(1);
       
@@ -330,7 +326,7 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1,
 	Quad2.Parameters(aPChar, U2, V2);
 	aPtsol.SetValue(aPChar, Tol, Standard_False);
 	aPtsol.SetParameters(U1, V1, U2, V2);
-	para = ElCLib::Parameter(parabsol, aPChar);
+	ElCLib::Parameter(parabsol, aPChar);
 	aPtsol.SetParameter(0.);
 	glig->AddVertex(aPtsol);
       }
diff --git a/inc/IntStart_SearchOnBoundaries_1.gxx b/inc/IntStart_SearchOnBoundaries_1.gxx
index d5a29ef..c585bc6 100644
--- a/inc/IntStart_SearchOnBoundaries_1.gxx
+++ b/inc/IntStart_SearchOnBoundaries_1.gxx
@@ -754,7 +754,7 @@ Standard_Integer TreatLC (const TheArc& A,
     return anExitCode;
   }
   
-  Standard_Real f, l, U1f, U1l, U2f, U2l, U1, UEgde, TOL, aDist, aR, aRRel, Tol;
+  Standard_Real f, l, U1f, U1l, U2f, U2l, UEgde, TOL, aDist, aR, aRRel, Tol;
   Handle(Geom_Curve) aCEdge=BRep_Tool::Curve(*anE, f, l);
   
   gp_Cylinder aCyl=aQuadric.Cylinder();
@@ -792,7 +792,6 @@ Standard_Integer TreatLC (const TheArc& A,
   P1   =PC1.Value();
   PEdge=PC2.Value();
   
-  U1=PC1.Parameter();
   UEgde=PC2.Parameter();
   
   aDist=PEdge.Distance(P1);
diff --git a/inc/TopOpeBRepBuild_SplitEdge.hxx b/inc/TopOpeBRepBuild_SplitEdge.hxx
index f18f656..75fcc7a 100644
--- a/inc/TopOpeBRepBuild_SplitEdge.hxx
+++ b/inc/TopOpeBRepBuild_SplitEdge.hxx
@@ -40,21 +40,6 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
   TopAbs_Orientation Eori =
 #endif
                             Eoriented.Orientation();
-#ifdef DEB
-  Standard_Integer io = 0;
-  if      ( Eori == TopAbs_FORWARD  ) {
-    io = 1;
-  }
-  else if ( Eori == TopAbs_REVERSED ) {
-    io = 2;
-  }
-  else if ( Eori == TopAbs_INTERNAL ) {
-    io = 3;
-  }
-  else if ( Eori == TopAbs_EXTERNAL ) {
-    io = 4;
-  }
-#endif
 
   TopoDS_Shape Eforward = Eoriented; 
   Eforward.Orientation(TopAbs_FORWARD);
@@ -72,8 +57,8 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
   
   if ( ! tosplit ) return;
 
-  Standard_Boolean RevOri1 = Reverse(ToBuild1,ToBuild2);
-  Standard_Boolean RevOri2 = Reverse(ToBuild2,ToBuild1);
+  Reverse(ToBuild1,ToBuild2);
+  Reverse(ToBuild2,ToBuild1);
   Standard_Boolean ConnectTo1 = Standard_True;
   Standard_Boolean ConnectTo2 = Standard_False;
   
@@ -95,8 +80,6 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
   
   // SplitEdge on a edge having other same domained edges on the
   // other shape : do not reverse orientation of edges in FillEdge
-  if (!n2) RevOri1 = Standard_False;
-  if (!n1) RevOri2 = Standard_False;
     
   // Make a PaveSet <PVS> on edge <Eforward>
   TopOpeBRepBuild_PaveSet PVS(Eforward);
diff --git a/inc/Transfer_TransferProcess.gxx b/inc/Transfer_TransferProcess.gxx
index 8bb26e5..6e231e1 100644
--- a/inc/Transfer_TransferProcess.gxx
+++ b/inc/Transfer_TransferProcess.gxx
@@ -1236,7 +1236,7 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
 
   if (!binder.IsNull()) {   // old: if IsNull sout <<endl<< "  ---  Not Bound";
     Handle(Transfer_Binder) bnd = binder;
-    Standard_Boolean hasres = Standard_False, isused = Standard_False;
+    Standard_Boolean hasres = Standard_False;
     while (!bnd.IsNull()) {
       if (bnd->Status() != Transfer_StatusVoid) {
 // ---  Result Type: binder->ResultType()  ---  Binder : binder->DynamicType();
@@ -1250,7 +1250,6 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
           Msg2075.AddString(bnd->ResultTypeName());
           Msg2075.TraceEver();  */
 	hasres = Standard_True;
-	if (bnd->Status() == Transfer_StatusUsed) isused = Standard_True;
       }
       bnd = bnd->NextResult();
     }
diff --git a/src/AIS/AIS_AngleDimension.cxx b/src/AIS/AIS_AngleDimension.cxx
index d1bbd95..e89114c 100644
--- a/src/AIS/AIS_AngleDimension.cxx
+++ b/src/AIS/AIS_AngleDimension.cxx
@@ -929,7 +929,6 @@ void AIS_AngleDimension::ComputeTwoEdgesNotNullAngle(const Handle(Prs3d_Presenta
   else d2 = l2->Lin().Direction();
   if (!isInfinite1) {
     Standard_Boolean In1(Standard_False);
-    Standard_Boolean In2(Standard_False);
     if ( !(Abs(d1.Angle(d2) - Abs(myVal)) <= Precision::Confusion())
 	 &&  (Abs(myVal) <  PI) ) {
       Standard_Real parcent1 = ElCLib::Parameter(l1->Lin(), myCenter);
@@ -948,7 +947,6 @@ void AIS_AngleDimension::ComputeTwoEdgesNotNullAngle(const Handle(Prs3d_Presenta
       }
       }
       if ( !In1) {
-	In2 = Standard_True;
 	d2.Reverse();
       }
     }
@@ -1267,11 +1265,6 @@ void AIS_AngleDimension::ComputeTwoEdgesNullAngle(const Handle(Prs3d_Presentatio
       tabdist(3) = tabdist(4) = 0.;
     }
     if ( SameLines ) {
-      Standard_Real dist1(RealLast());
-      if (!isInfinite1) dist1 = Max(tabdist(1),tabdist(2));
-      Standard_Real dist2(RealLast());
-      if (!isInfinite2) dist2 = Max(tabdist(3),tabdist(4));      
-      
       myFAttach = myCenter;
       mySAttach = myCenter;
       P1 = myFAttach;
@@ -1953,9 +1946,6 @@ void AIS_AngleDimension::ComputeConeAngleSelection(const Handle(SelectMgr_Select
  
   Standard_Boolean IsArrowOut = Standard_True;    //Is arrows inside or outside of the cone
   //Standard_Real PntOnMainAxis = 0;   //Is projection of aPosition inside of the cone = 0, above = 1, or below = -1
-  Standard_Boolean IsConeTrimmed = Standard_False; 
-
-  if( CircVmin.Radius() > 0.01 ) IsConeTrimmed = Standard_True;
 
   gp_Pnt AttachmentPnt;
   gp_Pnt OppositePnt;
diff --git a/src/AIS/AIS_DiameterDimension.cxx b/src/AIS/AIS_DiameterDimension.cxx
index a263f6f..ed8a49f 100644
--- a/src/AIS/AIS_DiameterDimension.cxx
+++ b/src/AIS/AIS_DiameterDimension.cxx
@@ -194,13 +194,11 @@ void AIS_DiameterDimension::ComputeSelection(
     
     Standard_Real dist    = center.Distance(AttachmentPoint);
     Standard_Real aRadius = myCircle.Radius();
-    Standard_Real inside  = Standard_False;
     
     gp_Pnt pt1 = AttachmentPoint;
     if (dist < aRadius) {
       pt1 = ptoncirc;
       dist = aRadius;
-      inside = Standard_True;
     }
     vecrap.Normalize();
     vecrap *= (dist+aRadius);
diff --git a/src/AIS/AIS_EqualDistanceRelation.cxx b/src/AIS/AIS_EqualDistanceRelation.cxx
index 53962d4..45c9480 100644
--- a/src/AIS/AIS_EqualDistanceRelation.cxx
+++ b/src/AIS/AIS_EqualDistanceRelation.cxx
@@ -632,9 +632,6 @@ void AIS_EqualDistanceRelation::ComputeTwoVerticesLength( const Handle( Prs3d_Pr
   }
   
   // size
-  Standard_Real arrsize = ArrowSize;
-  if (Abs(Val) <= confusion) arrsize =0.;
-
   if (AutomaticPos) {
    if (!samePoint) {
      gp_Pnt curpos((FirstAttach.XYZ()+SecondAttach.XYZ())*0.5);
diff --git a/src/AIS/AIS_InteractiveContext.cxx b/src/AIS/AIS_InteractiveContext.cxx
index fb94705..c55a02a 100644
--- a/src/AIS/AIS_InteractiveContext.cxx
+++ b/src/AIS/AIS_InteractiveContext.cxx
@@ -960,11 +960,11 @@ void AIS_InteractiveContext::Remove(const Handle(AIS_InteractiveObject)& anIObj,
   }
   else
     {
-      Standard_Boolean  WasInCtx = myLocalContexts(myCurLocalIndex)->Remove(anIObj);
+      myLocalContexts(myCurLocalIndex)->Remove(anIObj);
       AIS_DataMapIteratorOfDataMapOfILC It(myLocalContexts);
       for (;It.More() ;It.Next()){
         if(It.Value()->AcceptErase())
-          WasInCtx = It.Value()->Remove(anIObj);
+          It.Value()->Remove(anIObj);
         
       }
       //      if(!WasInCtx)
diff --git a/src/AIS/AIS_LocalContext.cxx b/src/AIS/AIS_LocalContext.cxx
index 1269634..b114a30 100644
--- a/src/AIS/AIS_LocalContext.cxx
+++ b/src/AIS/AIS_LocalContext.cxx
@@ -428,7 +428,6 @@ Standard_Boolean AIS_LocalContext::Remove(const Handle(AIS_InteractiveObject)& a
   const Handle(AIS_LocalStatus)& Att = myActiveObjects(aSelectable);
   
   TColStd_ListIteratorOfListOfInteger It;
-  Standard_Boolean jobdone(Standard_False);
   // it is checked which were the temporary attributes 
   // and they are set to 0
 
@@ -451,7 +450,6 @@ Standard_Boolean AIS_LocalContext::Remove(const Handle(AIS_InteractiveObject)& a
       if(myMainPM->IsDisplayed(aSelectable,Att->HilightMode()))
 	myMainPM->Erase(aSelectable,Att->HilightMode());
       //	myMainPM->Clear(aSelectable,Att->HilightMode());
-      jobdone = Standard_True;
     }
   // if below intensity
   else
diff --git a/src/AIS2D/AIS2D_InteractiveContext.cxx b/src/AIS2D/AIS2D_InteractiveContext.cxx
index c5b636d..f8bd6a7 100644
--- a/src/AIS2D/AIS2D_InteractiveContext.cxx
+++ b/src/AIS2D/AIS2D_InteractiveContext.cxx
@@ -1140,11 +1140,10 @@ void AIS2D_InteractiveContext::DisplayedObjects (AIS2D_ListOfIO& aListOfIO,
 	     theMap.Add(It.Key());
     }
     
-    Standard_Integer NbDisp;
     for ( AIS2D_DataMapIteratorOfDataMapOfLC it1(myLocalContexts);
 	      it1.More(); it1.Next() ) {
       const Handle(AIS2D_LocalContext)& LC = it1.Value();
-      NbDisp =  LC->DisplayedObjects(theMap);
+      LC->DisplayedObjects(theMap);
 	}
 		  
     Handle(AIS2D_InteractiveObject) curIO;
@@ -1747,22 +1746,18 @@ void AIS2D_InteractiveContext::Highlight( const Handle(AIS2D_InteractiveObject)&
 	 Standard_Integer DispMode,SelMode;
      AIS2D_TypeOfDetection HiMode = AIS2D_TOD_NONE;
 	 GetDefModes( anIObj, DispMode, HiMode, SelMode );
-     Standard_Integer pInd;
      anIObj->Highlight(myMainVwr->InitializeColor( mySelectionColor ));
      switch( HiMode ) {
 	 default:
      case AIS2D_TOD_OBJECT:
        break;
      case AIS2D_TOD_PRIMITIVE:
-       pInd = anIObj->PickedIndex();
        anIObj->Unhighlight();
        break;
      case AIS2D_TOD_ELEMENT:
-       pInd = anIObj->PickedIndex();
        anIObj->Unhighlight();
        break;
      case AIS2D_TOD_VERTEX:
-       pInd = anIObj->PickedIndex();
        anIObj->Unhighlight();
        break;
      } //end switch
diff --git a/src/AdvApp2Var/AdvApp2Var_Patch.cxx b/src/AdvApp2Var/AdvApp2Var_Patch.cxx
index 3b178a3..4abc3a0 100644
--- a/src/AdvApp2Var/AdvApp2Var_Patch.cxx
+++ b/src/AdvApp2Var/AdvApp2Var_Patch.cxx
@@ -97,11 +97,9 @@ void AdvApp2Var_Patch::Discretise(const AdvApp2Var_Context& Conditions,
 {
 
 // les donnees stockees dans le Context
-  Standard_Integer NDIMEN, NBSESP, NDIMSE, ISOFAV;
+  Standard_Integer NDIMEN, ISOFAV;
   NDIMEN = Conditions.TotalDimension();
-  NBSESP = Conditions.TotalNumberSSP();
 // Attention : ne marche que pour le 3D
-  NDIMSE = 3;
   ISOFAV = Conditions.FavorIso();
 
 // les donnees relatives au patch a discretiser
@@ -392,12 +390,10 @@ void AdvApp2Var_Patch::AddConstraints(const AdvApp2Var_Context& Conditions,
 				      const AdvApp2Var_Framework& Constraints)
 {
 // les donnees stockees dans le Context
-  Standard_Integer NDIMEN, NBSESP, NDIMSE;
+  Standard_Integer NDIMEN;
   Standard_Integer IERCOD, NCFLMU, NCFLMV, NDegU, NDegV;
   NDIMEN = Conditions.TotalDimension();
-  NBSESP = Conditions.TotalNumberSSP();
 // Attention : ne marche que pour le 3D
-  NDIMSE = 3;
   NCFLMU = Conditions.ULimit();
   NCFLMV = Conditions.VLimit();
   NDegU = NCFLMU - 1;
diff --git a/src/AdvApp2Var/AdvApp2Var_SysBase.cxx b/src/AdvApp2Var/AdvApp2Var_SysBase.cxx
index a62378b..f8695fc 100644
--- a/src/AdvApp2Var/AdvApp2Var_SysBase.cxx
+++ b/src/AdvApp2Var/AdvApp2Var_SysBase.cxx
@@ -140,9 +140,6 @@ int AdvApp2Var_SysBase::macinit_(integer *imode,
 
 {
  
-  /* Fortran I/O blocks */
-  static cilist io______1 = { 0, 0, 0, (char*) "(' --- Debug-mode : ',I10,' ---')", 0 };
-  
   /* ************************************************************************/
   /*     FONCTION : */
   /*     ---------- */
@@ -210,13 +207,6 @@ int AdvApp2Var_SysBase::macinit_(integer *imode,
     mblank__.imp = *ival;
   } else if (*imode == 2) {
     mblank__.ibb = *ival;
-    io______1.ciunit = mblank__.imp;
-    /*
-    s__wsfe(&io______1);
-    */
-    /*
-    do__fio(&c____1, (char *)&mblank__.ibb, (ftnlen)sizeof(integer));
-    */
     AdvApp2Var_SysBase::e__wsfe();
   } else if (*imode == 3) {
     mblank__.lec = *ival;
@@ -792,7 +782,7 @@ int macrgfl_(long int *iadfld,
   static integer ibid, ienr;
   static doublereal t[1];
   static integer novfl;
-  static long int ioff,iadrfl, iadt;
+  static long int ioff,iadt;
   
   
   /* ***********************************************************************
@@ -926,7 +916,6 @@ int macrgfl_(long int *iadfld,
   t[ioff] = -134744073.;
   
   /*  APPEL BIDON POUR PERMETTRE L'ARRET AU DEBUGGER : */
-  iadrfl = *iadfld;
   macrbrk_();
   
   /*  MISE A JOUR DU FLAG DE DEBUT */
@@ -934,7 +923,6 @@ int macrgfl_(long int *iadfld,
   t[ioff] = -134744073.;
     
   /*  APPEL BIDON POUR PERMETTRE L'ARRET AU DEBUGGER : */
-  iadrfl = *iadflf;
   macrbrk_();
   
   return 0 ;
@@ -955,14 +943,9 @@ int macrmsg_(const char *,//crout,
 {
   
   /* Local variables */
-  static integer inum, iunite;
+  static integer inum;
   static char cfm[80], cln[3];
   
-  /* Fortran I/O blocks */
-  static cilist io___5 = { 0, 0, 0, cfm, 0 };
-  static cilist io___6 = { 0, 0, 0, cfm, 0 };
-  static cilist io___7 = { 0, 0, 0, cfm, 0 };
- 
 
 /* ***********************************************************************
  */
@@ -1210,32 +1193,12 @@ t !! ')", 80L, 54L);
    */
   /*  REALISATION DU WRITE , AVEC OU SANS DONNEES : */
   
-  iunite = AdvApp2Var_SysBase::mnfnimp_();
   if (inum == 0) {
-    io___5.ciunit = iunite;
-    /*
-    s__wsfe(&io___5);
-    */
     AdvApp2Var_SysBase::e__wsfe();
   } else if (inum == 1) {
-    io___6.ciunit = iunite;
-    /*
-    s__wsfe(&io___6);
-    */
-    /*
-    do__fio(&c__1, (char *)&it[1], (ftnlen)sizeof(integer));
-    */
     AdvApp2Var_SysBase::e__wsfe();
   } else {
     /*  LE MESSAGE N'EXISTE PAS ... */
-    io___7.ciunit = iunite;
-    /*
-    s__wsfe(&io___7);
-    */
-    /*
-    do__fio(&c__1, (char *)&(*num), (ftnlen)sizeof(integer));
-    do__fio(&c__1, crout, crout_len);
-    */
     AdvApp2Var_SysBase::e__wsfe();
   }
   
@@ -3025,7 +2988,7 @@ int AdvApp2Var_SysBase::mcrrqst_(integer *iunit,
   static doublereal dfmt;
   static integer ifmt, iver;
   static char subr[7];
-  static integer ksys , ibyte, irest, isyst, ier;
+  static integer ksys , ibyte, irest, ier;
   static long int iadfd, iadff, iaddr,lofset, loc;
   static integer izu;
 
@@ -3276,7 +3239,6 @@ int AdvApp2Var_SysBase::mcrrqst_(integer *iunit,
 
 /* DEMANDE D'ALLOCATION */
 
-    isyst = 0;
 /* L1001: */
 /*      IF ( ISYST.EQ.0.AND.IBYTE .LE. 100 * 1024 ) THEN */
 /*        ALLOCATION SUR TABLE */
@@ -3465,8 +3427,6 @@ void AdvApp2Var_SysBase::miraz_(integer *taille,
 				char *adt)
 
 {
-  integer offset;
-  offset = *taille;
   memset(adt , '\0' , *taille) ;
 }
 //=======================================================================
@@ -3622,9 +3582,6 @@ int AdvApp2Var_SysBase::mswrdbg_(const char *,//ctexte,
 
 {
 
-  static cilist io___1 = { 0, 0, 0, 0, 0 };
-  
-
 /* ***********************************************************************
  */
 
@@ -3671,8 +3628,6 @@ int AdvApp2Var_SysBase::mswrdbg_(const char *,//ctexte,
  */
 
     if (AdvApp2Var_SysBase::mnfndeb_() >= 1) {
-	io___1.ciunit = AdvApp2Var_SysBase::mnfnimp_();
-	//s__wsle(&io___1);
 	//do__lio(&c__9, &c__1, "Dbg ", 4L);
 	//do__lio(&c__9, &c__1, ctexte, ctexte_len);
 	AdvApp2Var_SysBase::e__wsle();
diff --git a/src/Aspect/Aspect_ColorScale.cxx b/src/Aspect/Aspect_ColorScale.cxx
index cc61ecf..86f12de 100644
--- a/src/Aspect/Aspect_ColorScale.cxx
+++ b/src/Aspect/Aspect_ColorScale.cxx
@@ -422,7 +422,6 @@ void Aspect_ColorScale::DrawScale( const Quantity_Color& aBgColor,
 
   TCollection_ExtendedString aTitle = GetTitle();
 
-  Standard_Integer titleWidth = 0;
   Standard_Integer titleHeight = 0;
 
   Standard_Integer aGray = (Standard_Integer)(255 * ( aBgColor.Red() * 11 + aBgColor.Green() * 16 + aBgColor.Blue() * 5 ) / 32);
@@ -430,7 +429,6 @@ void Aspect_ColorScale::DrawScale( const Quantity_Color& aBgColor,
 
   // Draw title
   if ( aTitle.Length() ) {
-    titleWidth = TextWidth( aTitle );
     titleHeight = TextHeight( aTitle ) + 2 * spacer;
     PaintText( aTitle, X + spacer, Y + spacer, aFgColor );
   }
diff --git a/src/BOP/BOP_FaceBuilder.cxx b/src/BOP/BOP_FaceBuilder.cxx
index dedca02..17f30af 100644
--- a/src/BOP/BOP_FaceBuilder.cxx
+++ b/src/BOP/BOP_FaceBuilder.cxx
@@ -274,7 +274,6 @@ static void DoTopologicalVerification(TopoDS_Face& F);
 //=======================================================================
   void BOP_FaceBuilder::BuildNewFaces() 
 {
-  Standard_Integer nF, nW, nE;
   Standard_Real    aTol;
   TopLoc_Location aLoc;
   TopoDS_Face newFace;
@@ -288,19 +287,19 @@ static void DoTopologicalVerification(TopoDS_Face& F);
   myNewFaces.Clear();
   myNegatives.Clear();
 
-  nF=InitFace();
+  InitFace();
   for (; MoreFace(); NextFace()) {
     bValidFace=Standard_False;
     aBB.MakeFace (newFace, aSurface, aLoc, aTol);
 
-    nW=InitWire();
+    InitWire();
     for (; MoreWire(); NextWire()) {
       if (IsOldWire()) {
 	newWire=TopoDS::Wire(OldWire());
       }
       else {
 	aBB.MakeWire(newWire);
-	nE=InitEdge();
+	InitEdge();
 	for (; MoreEdge(); NextEdge()) {
 	  const TopoDS_Edge& newEdge=Edge();
 	  aBB.Add(newWire, newEdge);
diff --git a/src/BOP/BOP_SDFWESFiller.cxx b/src/BOP/BOP_SDFWESFiller.cxx
index 111ebd1..b724440 100644
--- a/src/BOP/BOP_SDFWESFiller.cxx
+++ b/src/BOP/BOP_SDFWESFiller.cxx
@@ -363,7 +363,7 @@ static void TreatSDSeams (const TopoDS_Edge& aSpE1Seam11,
   BOPTools_PaveFiller* pPaveFiller=(BOPTools_PaveFiller*) &aPaveFiller;
   BOPTools_CommonBlockPool& aCBPool=pPaveFiller->ChangeCommonBlockPool();
   //
-  Standard_Integer aBid=0, nE1, nE2, aNbSpON, nSp1, nSp2, iRankF1;
+  Standard_Integer aBid=0, nE1, nE2, aNbSpON, nSp1, iRankF1;
   Standard_Real aT1, aT2, aT, aTs; /*, U, V;*/ 
   Standard_Boolean aFlag;
   TColStd_ListOfInteger aLs;
@@ -425,7 +425,6 @@ static void TreatSDSeams (const TopoDS_Edge& aSpE1Seam11,
 	// aPB2
 	BOPTools_PaveBlock& aPB2=aCB.PaveBlock2(nE1);
 	nE2=aPB2.OriginalEdge();
-	nSp2=aPB2.Edge();
 	const TopoDS_Edge& anE2=TopoDS::Edge(aDS.GetShape(nE2));
 	//
 	IntTools_Context& aContext=pPaveFiller->ChangeContext();
@@ -1285,7 +1284,7 @@ void TreatSDSeams (const TopoDS_Edge& aSpE1Seam11,
 			 TopoDS_Edge& aSS)
 				      
 {
-  Standard_Real a, b, aD1121, aD1122, aTol=1.e-7;
+  Standard_Real a, b, aD1121, aTol=1.e-7;
   Handle(Geom2d_Curve) aC2DSeam11, aC2DSeam21, aC2DSeam22;
   gp_Pnt2d aP2D11, aP2D21, aP2D22;
 
@@ -1299,7 +1298,6 @@ void TreatSDSeams (const TopoDS_Edge& aSpE1Seam11,
   aC2DSeam22->D0(aT2, aP2D22);
 
   aD1121=aP2D11.Distance(aP2D21);
-  aD1122=aP2D11.Distance(aP2D22);
   
   aSS=aSpE1Seam22;
   if (aD1121<aTol) {
diff --git a/src/BOP/BOP_ShellShell.cxx b/src/BOP/BOP_ShellShell.cxx
index 6569be9..21e27d7 100644
--- a/src/BOP/BOP_ShellShell.cxx
+++ b/src/BOP/BOP_ShellShell.cxx
@@ -216,7 +216,7 @@
   //
   // vars
   Standard_Boolean bIsTouchCase, bIsTouch;
-  Standard_Integer i, aNb, j, aNbj, iFF, nF1, iRank;
+  Standard_Integer i, aNb, j, aNbj, iFF, nF1;
   TopTools_ListOfShape aListOfNewFaces;
   TopTools_IndexedMapOfShape anEMap;
   TopAbs_Orientation anOriF1;
@@ -234,7 +234,6 @@
     const TopoDS_Face& aF1=TopoDS::Face(aDS.Shape(nF1));
     
     anOriF1=aF1.Orientation();
-    iRank=aDS.Rank(nF1);
     
     myFace=aF1;
     myFace.Orientation(TopAbs_FORWARD);
@@ -273,8 +272,6 @@
 	BOPTools_SSInterference& aFF=aFFs(iFF);
 	bIsTouch=aFF.IsTangentFaces();
 	if (bIsTouch) {
-	  Standard_Integer nF2;
-	  nF2=aFF.OppositeIndex(nF1);
 	  AddINON2DPartsSh(nF1, iFF, aWES);
 	}
       }
diff --git a/src/BOP/BOP_ShellSolid.cxx b/src/BOP/BOP_ShellSolid.cxx
index 9a678bf..77abf6c 100644
--- a/src/BOP/BOP_ShellSolid.cxx
+++ b/src/BOP/BOP_ShellSolid.cxx
@@ -1249,7 +1249,7 @@ Standard_Boolean BOP_ShellSolid::CheckArgTypes() const
 //=======================================================================
   void BOP_ShellSolid::FillSectionEdges()
 {
-  Standard_Integer i, j, nF1, nF2,  aNbFFs, aNbS, aNbCurves, nSect;
+  Standard_Integer i, j, aNbFFs, aNbS, aNbCurves, nSect;
   //
   const BooleanOperations_ShapesDataStructure& aDS=myDSFiller->DS();
   const BOPTools_InterferencePool& anInterfPool=myDSFiller->InterfPool();
@@ -1262,9 +1262,6 @@ Standard_Boolean BOP_ShellSolid::CheckArgTypes() const
   for (i=1; i<=aNbFFs; ++i) {
     BOPTools_SSInterference& aFFi=aFFs(i);
     //
-    nF1=aFFi.Index1();
-    nF2=aFFi.Index2();
-    //
     // Old Section Edges
     const BOPTools_ListOfPaveBlock& aSectList=aFFi.PaveBlocks();
     aNbS=aSectList.Extent();
diff --git a/src/BOP/BOP_ShellSolid_1.cxx b/src/BOP/BOP_ShellSolid_1.cxx
index dda5869..2e1c890 100644
--- a/src/BOP/BOP_ShellSolid_1.cxx
+++ b/src/BOP/BOP_ShellSolid_1.cxx
@@ -81,12 +81,9 @@ static
   BOPTools_InterferencePool* pIntrPool=(BOPTools_InterferencePool*)&myDSFiller->InterfPool();
   BOPTools_CArray1OfSSInterference& aFFs=pIntrPool->SSInterferences();
   //
-  Standard_Integer i, aNbCurves, nF2,  nE, iRankF1;
-  //
-  iRankF1=aDS.Rank(nF1);
+  Standard_Integer i, aNbCurves, nE;
   //
   BOPTools_SSInterference& aFF=aFFs(iFF);
-  nF2=aFF.OppositeIndex(nF1);
   //
   BOPTools_SequenceOfCurves& aSC=aFF.Curves();
   aNbCurves=aSC.Length();
@@ -318,7 +315,7 @@ static
   BOPTools_PaveFiller* pPaveFiller=(BOPTools_PaveFiller*)&aPF;
   BOPTools_CommonBlockPool& aCBPool=pPaveFiller->ChangeCommonBlockPool();
   //
-  Standard_Integer iRankF1, iRankF2, nF2, nSpEF2, nEF2,  nFace;
+  Standard_Integer iRankF2, nF2, nSpEF2, nEF2,  nFace;
   TopExp_Explorer anExp2;
   TopAbs_Orientation anOrEF2;
   //
@@ -327,7 +324,6 @@ static
   //
   const TopoDS_Face& aF2=TopoDS::Face(aDS.Shape(nF2));
   //
-  iRankF1=aDS.Rank(nF1);
   iRankF2=aDS.Rank(nF2);
   //
   // EF2\F1 Processing
diff --git a/src/BOP/BOP_ShellSolid_2.cxx b/src/BOP/BOP_ShellSolid_2.cxx
index b2bb120..9783b58 100644
--- a/src/BOP/BOP_ShellSolid_2.cxx
+++ b/src/BOP/BOP_ShellSolid_2.cxx
@@ -1348,7 +1348,7 @@ void SecondInternal(TopoDS_Edge& aSS,
   //
   IntTools_Context& aContext=pPaveFiller->ChangeContext();
   //
-  Standard_Integer nEF1, nF2, nSpF1, nSpF2, nEF2, nSpTaken, iRankF1, nF2x, iRankF2, iSenseFlag;
+  Standard_Integer nEF1, nF2, nSpF1, nSpF2, nEF2, nSpTaken, iRankF1, nF2x, iSenseFlag;
   TopAbs_Orientation anOrEF1;
   TopExp_Explorer anExp;
   TopTools_IndexedMapOfShape aM;
@@ -1370,8 +1370,6 @@ void SecondInternal(TopoDS_Edge& aSS,
     return ;
   }
   //
-  iRankF2=aDS.Rank(nF2);
-  //
   pPaveFiller->SplitsOnFace(0, nF1, nF2, aSplitsOnF1);
   //
   anIt.Initialize(aSplitsOnF1);
diff --git a/src/BOP/BOP_ShellSplitter.cxx b/src/BOP/BOP_ShellSplitter.cxx
index a983f5e..dc77c1a 100644
--- a/src/BOP/BOP_ShellSplitter.cxx
+++ b/src/BOP/BOP_ShellSplitter.cxx
@@ -441,7 +441,7 @@ Standard_Boolean GetShells(TopTools_SequenceOfShape& Lface,
 			   TopTools_SequenceOfShape& ErrFaces) 
 {
   Standard_Boolean done = Standard_False;
-  Standard_Integer i, j, aNbLfaceLength;
+  Standard_Integer i, j;
 
   j=Lface.Length();
   if(!j) {
@@ -460,7 +460,6 @@ Standard_Boolean GetShells(TopTools_SequenceOfShape& Lface,
   j=1;
   //
   for(; i<=Lface.Length(); i++)  {
-    aNbLfaceLength=Lface.Length();
     TopTools_MapOfShape dtemp, rtemp;
     Standard_Integer nbbe=0, nbe = 0;
     
@@ -523,7 +522,6 @@ Standard_Boolean GetShells(TopTools_SequenceOfShape& Lface,
     if( nbe != 0 && nbbe != 0) {
       ErrFaces.Append(aF);
       Lface.Remove(i);
-      aNbLfaceLength=Lface.Length();
       j++;
       continue;
     }
@@ -560,7 +558,6 @@ Standard_Boolean GetShells(TopTools_SequenceOfShape& Lface,
       B.Add(nshell, aF);
       aMapFaceShells.Bind(aF, nshell);
       Lface.Remove(i);
-      aNbLfaceLength=Lface.Length();
       if(isMultiConnex && BRep_Tool::IsClosed(nshell)) {
         aSeqShells.Append(nshell);
         TopoDS_Shell nshellnext;
@@ -835,7 +832,6 @@ void CreateClosedShell(TopTools_SequenceOfShape& OpenShells,
     // 
     for(j=i+1; j<=OpenShells.Length(); j++)  {
       Standard_Integer nbedge =0;
-      Standard_Boolean isReversed = Standard_False;
       
       const TopoDS_Shape& anOpenShellj=OpenShells.Value(j);
 
@@ -866,13 +862,6 @@ void CreateClosedShell(TopTools_SequenceOfShape& OpenShells,
 	  }
 
           isClosedShell = Standard_True;
-
-	  TopAbs_Orientation anOrE2;
-	  anOrE2=aE2.Orientation();
-          if((anOrE2 == TopAbs_FORWARD  && bDireContains) || 
-	     (anOrE2 == TopAbs_REVERSED && bReveContains)) {
-            isReversed = Standard_True;
-	  }
           nbedge++;
         }
       }// for(; aExpF2.More() && !nbedge; aExpF2.Next())
diff --git a/src/BOP/BOP_SolidSolid_1.cxx b/src/BOP/BOP_SolidSolid_1.cxx
index 08c3970..5d8df08 100644
--- a/src/BOP/BOP_SolidSolid_1.cxx
+++ b/src/BOP/BOP_SolidSolid_1.cxx
@@ -95,7 +95,6 @@ void BOP_SolidSolid::PrepareFaceSplits()
   BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger aFFMap;
   BOP_BuilderTools::DoMap(aFFs, aFFMap);
   TopTools_ListOfShape aListOfNewFaces;
-  TopAbs_Orientation anOriF1 = TopAbs_FORWARD;
 
   TColStd_DataMapOfIntegerListOfInteger& aMapOfFaceSplits = myDSFiller->ChangeSplitFacePool();
   
@@ -107,7 +106,6 @@ void BOP_SolidSolid::PrepareFaceSplits()
     nF1 = aFFMap.FindKey(i);
     TopoDS_Face aF1 = TopoDS::Face(aDS.Shape(nF1));
     
-    anOriF1 = aF1.Orientation();
     iRank   = aDS.Rank(nF1);
 
     TopTools_DataMapOfShapeInteger aMapOfEdgeIndex;
diff --git a/src/BOP/BOP_WireShape.cxx b/src/BOP/BOP_WireShape.cxx
index c5efd1d..ae4bbff 100644
--- a/src/BOP/BOP_WireShape.cxx
+++ b/src/BOP/BOP_WireShape.cxx
@@ -176,7 +176,7 @@ static
   const BOPTools_PaveFiller& aPaveFiller=myDSFiller->PaveFiller();
   const BOPTools_CommonBlockPool& aCommonBlockPool=aPaveFiller.CommonBlockPool();
 
-  Standard_Integer i, aNbCB, nSpTaken, iBeg, iEnd;
+  Standard_Integer i, nSpTaken, iBeg, iEnd;
   TopAbs_ShapeEnum aType, aTypeArg1, aTypeArg2;
   BOPTools_ListIteratorOfListOfCommonBlock anItCB;
   //
@@ -200,7 +200,6 @@ static
     }
     //
     const BOPTools_ListOfCommonBlock& aLCB=aCommonBlockPool(aDS.RefEdge(i));
-    aNbCB=aLCB.Extent();
 
     anItCB.Initialize(aLCB);
     for (; anItCB.More(); anItCB.Next()) {
diff --git a/src/BOPTest/BOPTest_BOPCommands.cxx b/src/BOPTest/BOPTest_BOPCommands.cxx
index 3ffa9f5..05b3def 100644
--- a/src/BOPTest/BOPTest_BOPCommands.cxx
+++ b/src/BOPTest/BOPTest_BOPCommands.cxx
@@ -463,9 +463,8 @@ Standard_Integer boperationFiller (Standard_Integer n,
     return 1;
   }
 
-  Standard_Boolean aMFlag, anIsDone;
+  Standard_Boolean anIsDone;
 
-  aMFlag=Standard_False;
   //
   BRepAlgoAPI_BooleanOperation* pBuilder=NULL;
   // 
@@ -1374,7 +1373,7 @@ Standard_Integer bopscts (Draw_Interpretor& di,
     di << " Prepare BOPTools_DSFiller first >bop S1 S2\n";
     return 0;
   }
-  Standard_Integer i, nF1, nF2,  aNbFFs, aNbOldSects, aSectExist=0, nSect;
+  Standard_Integer i, nF1, aNbFFs, aNbOldSects, aSectExist=0, nSect;
   Standard_Integer j, aNbCurves, aNbPaveBlocks, nNewEdge;
   Draw_Color aTextColor(Draw_cyan);
   TCollection_AsciiString aNm("t");
@@ -1389,7 +1388,6 @@ Standard_Integer bopscts (Draw_Interpretor& di,
     BOPTools_SSInterference& aFFi=aFFs(i);
     //
     nF1=aFFi.Index1();
-    nF2=aFFi.Index2();
     TCollection_AsciiString aInd(nF1), anUnd("_");
     //
     // Old Section Edges
@@ -1777,7 +1775,7 @@ Standard_Integer bopwho (Draw_Interpretor& di,
   // PaveBlocks 
   if (aTypeOfShapeToFind==TopAbs_EDGE) {
     //
-    Standard_Integer aNbPaveBlocks, nE, nOriginalEdge, aNbCommonBlocks;
+    Standard_Integer nE, nOriginalEdge;
     Standard_Integer nFace, nE2,  nOriginalEdge2;
     //
     const BOPTools_CommonBlockPool& aCommonBlockPool=pDF->CommonBlockPool();
@@ -1785,7 +1783,6 @@ Standard_Integer bopwho (Draw_Interpretor& di,
     aNbLines=aSplitShapesPool.Extent();
     for (i=1; i<=aNbLines; ++i) {
       const BOPTools_ListOfPaveBlock& aSplitEdges=aSplitShapesPool(i);
-      aNbPaveBlocks=aSplitEdges.Extent();
       
       BOPTools_ListIteratorOfListOfPaveBlock aPBIt(aSplitEdges);
       for (; aPBIt.More(); aPBIt.Next()) {
@@ -1797,7 +1794,6 @@ Standard_Integer bopwho (Draw_Interpretor& di,
 	  di << "  PaveBlock [Base Edge #" << nOriginalEdge << "]\n";
 	  const BOPTools_ListOfCommonBlock& aLCB=
 	    aCommonBlockPool(aDS.RefEdge(nOriginalEdge));
-	  aNbCommonBlocks=aLCB.Extent();
 	  
 	  BOPTools_ListIteratorOfListOfCommonBlock aCBIt(aLCB);
 	  for (; aCBIt.More(); aCBIt.Next()) {
diff --git a/src/BOPTest/BOPTest_TolerCommands.cxx b/src/BOPTest/BOPTest_TolerCommands.cxx
index 7fa5a50..80d11b9 100644
--- a/src/BOPTest/BOPTest_TolerCommands.cxx
+++ b/src/BOPTest/BOPTest_TolerCommands.cxx
@@ -209,7 +209,7 @@ void ReduceVertexTolerance (const TopoDS_Shape& aS)
 void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
 {
   Standard_Integer i, aNb=23;
-  Standard_Real aTolE, aD2, aTolMax2, aT1, aT2, aT, dT;
+  Standard_Real aD2, aTolMax2, aT1, aT2, aT, dT;
   gp_Pnt aPC3D, aP3D;
   gp_Pnt2d aPC2D;
 
@@ -273,7 +273,6 @@ void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
     return;
   }
   //
-  aTolE =BRep_Tool::Tolerance(aE);
   //
   aTolMax2=sqrt(aTolMax2); 
   
@@ -292,7 +291,7 @@ void ProcessVertex(const TopoDS_Vertex& aV,
 		   const TopTools_ListOfShape& aLE,
 		   const TopTools_ListOfShape& aLF)
 {
-  Standard_Real aTol, aTol2, aD2, aTolMax2, aTolE, aParam;
+  Standard_Real aTol, aD2, aTolMax2, aTolE, aParam;
   gp_Pnt aPC3D;
   gp_Pnt2d aPC2D;
   TopAbs_Orientation anOrV;
@@ -308,7 +307,6 @@ void ProcessVertex(const TopoDS_Vertex& aV,
   Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &aV.TShape());
   const gp_Pnt& aPV3D = TV->Pnt();
   aTol =BRep_Tool::Tolerance(aV);
-  aTol2=aTol*aTol;
   //
   anIt.Initialize(aLE);
   for (; anIt.More(); anIt.Next()) {
diff --git a/src/BOPTools/BOPTools_Checker.cxx b/src/BOPTools/BOPTools_Checker.cxx
index 109519c..a3a4e9d 100644
--- a/src/BOPTools/BOPTools_Checker.cxx
+++ b/src/BOPTools/BOPTools_Checker.cxx
@@ -788,7 +788,7 @@ void BOPTools_Checker::PerformEF()
     //
     // FF
     Standard_Boolean bToApproxC3d, bToApproxC2dOnS1, bToApproxC2dOnS2;
-    Standard_Real anApproxTol, aTolR3D, aTolR2D;
+    Standard_Real anApproxTol, aTolR3D;
     //
     bToApproxC3d     = mySectionAttribute.Approximation();
     bToApproxC2dOnS1 = mySectionAttribute.PCurveOnS1();
@@ -807,7 +807,6 @@ void BOPTools_Checker::PerformEF()
     if (aFF.IsDone()) {
       // Add Interference to the Pool
       aTolR3D=aFF.TolReached3d();
-      aTolR2D=aFF.TolReached2d();
       if (aTolR3D < 1.e-7){
 	aTolR3D=1.e-7;
       } 
diff --git a/src/BOPTools/BOPTools_DEProcessor.cxx b/src/BOPTools/BOPTools_DEProcessor.cxx
index e46b395..8ebba3d 100644
--- a/src/BOPTools/BOPTools_DEProcessor.cxx
+++ b/src/BOPTools/BOPTools_DEProcessor.cxx
@@ -629,7 +629,7 @@
   BOPTools_CArray1OfSSInterference& aFFs=(myFiller->InterfPool())->SSInterferences();
   
   BOPTools_ListIteratorOfListOfPaveBlock anIt;
-  Standard_Integer i, aNb, nF2, nSp, nV;
+  Standard_Integer i, aNb, nF2, nV;
 
   //ZZ const TopoDS_Edge& aDE=TopoDS::Edge(myDS->Shape(nED));
   
@@ -647,7 +647,6 @@
     anIt.Initialize(aLPBSplits);
     for (; anIt.More(); anIt.Next()) {
       const BOPTools_PaveBlock& aPBSp=anIt.Value();
-      nSp=aPBSp.Edge();
       
       const BOPTools_Pave& aPave1=aPBSp.Pave1();
       nV=aPave1.Index();
diff --git a/src/BOPTools/BOPTools_PaveFiller_1.cxx b/src/BOPTools/BOPTools_PaveFiller_1.cxx
index 97ef1f1..b9d5530 100644
--- a/src/BOPTools/BOPTools_PaveFiller_1.cxx
+++ b/src/BOPTools/BOPTools_PaveFiller_1.cxx
@@ -343,14 +343,14 @@
 	      //
 	      BooleanOperations_AncestorsSeqAndSuccessorsSeq anASSeq; 
 	      //
-	      Standard_Integer nVF, iFlag;
+	      Standard_Integer nVF;
 	      nVF=CheckFacePaves(aNewVertex, nF);
 	      if (nVF) {
 		const TopoDS_Vertex& aVF=TopoDS::Vertex(myDS->Shape(nVF));
 		
 		Standard_Real aTNew;
 		//
-		iFlag=myContext.ComputeVE(aVF, aE, aTNew);
+		myContext.ComputeVE(aVF, aE, aTNew);
 		//
 		aT=aTNew;
 		aNewShape=nVF;
diff --git a/src/BOPTools/BOPTools_PaveFiller_3.cxx b/src/BOPTools/BOPTools_PaveFiller_3.cxx
index 3739680..64bfc9d 100644
--- a/src/BOPTools/BOPTools_PaveFiller_3.cxx
+++ b/src/BOPTools/BOPTools_PaveFiller_3.cxx
@@ -712,21 +712,18 @@ static
 							 const BOPTools_SSInterference& aFFi)
 							 
 {
-  Standard_Real aTolC, aTE, aT11, aT12;
+  Standard_Real aTE;
   Standard_Integer nV11, nV12, nV21, nV22, iVV, iVE, nE2, iCount=0, iCountExt=1;
   Standard_Integer iV;
 
-  aTolC=aFFi.TolR3D();
   // V11
   const BOPTools_Pave& aPave11=aPB.Pave1();
   nV11=aPave11.Index();
   const TopoDS_Vertex& aV11=TopoDS::Vertex(myDS->GetShape(nV11));
-  aT11=aPave11.Param();
   // V12
   const BOPTools_Pave& aPave12=aPB.Pave2();
   nV12=aPave12.Index();
   const TopoDS_Vertex& aV12=TopoDS::Vertex(myDS->GetShape(nV12));
-  aT12=aPave12.Param();
   //
   const BOPTools_ListOfPaveBlock& aLPB=aFFi.PaveBlocks();
   BOPTools_ListIteratorOfListOfPaveBlock anIt(aLPB);
@@ -1204,7 +1201,7 @@ static
 //=======================================================================
   void BOPTools_PaveFiller::MakeSectionEdges()
 {
-  Standard_Integer i, j, aNbCurves, aNbFFs, nF1, nF2, nV1, nV2, aNbPaveBlocks,
+  Standard_Integer i, j, aNbCurves, aNbFFs, nF1, nF2, nV1, nV2,
                    aNewShapeIndex ;
   Standard_Real    t1, t2;
   TopoDS_Edge aESect;
@@ -1237,7 +1234,6 @@ static
       const IntTools_Curve& aIC=aBC.Curve();
       //
       const BOPTools_ListOfPaveBlock& aSectEdges=aBC.NewPaveBlocks();
-      aNbPaveBlocks=aSectEdges.Extent();
       BOPTools_ListIteratorOfListOfPaveBlock aPBIt(aSectEdges);
       pbi = 0;
       for (; aPBIt.More(); aPBIt.Next()) {
@@ -3153,7 +3149,6 @@ Standard_Integer RejectBuildingEdge(const IntTools_Curve& theC,
     return 0;
 
   Handle(Geom_Curve) aTCurve;
-  Standard_Real aTT;
   
   Standard_Integer eIndex = 0;
   Standard_Boolean edgeFound = Standard_False;
@@ -3187,7 +3182,6 @@ Standard_Integer RejectBuildingEdge(const IntTools_Curve& theC,
     if(sameParam) {
       Standard_Real f,l;
       aTCurve = BRep_Tool::Curve(aE,f,l);
-      aTT = BRep_Tool::Tolerance(aE);
       edgeFound = Standard_True;
     }
     if(edgeFound)
diff --git a/src/BOPTools/BOPTools_SolidStateFiller.cxx b/src/BOPTools/BOPTools_SolidStateFiller.cxx
index 35721e1..c1b4f0f 100644
--- a/src/BOPTools/BOPTools_SolidStateFiller.cxx
+++ b/src/BOPTools/BOPTools_SolidStateFiller.cxx
@@ -553,15 +553,13 @@ static
 //=======================================================================
   void BOPTools_SolidStateFiller::DoSections()
 {
-  Standard_Integer i, j, aNb, aNbCurves,  n1, n2, nE;
+  Standard_Integer i, j, aNb, aNbCurves,  nE;
   
   BOPTools_CArray1OfSSInterference& aFFs=myIntrPool->SSInterferences();
   
   aNb=aFFs.Extent();
   for (i=1; i<=aNb; i++) {
     BOPTools_SSInterference& aFF=aFFs(i);
-    n1=aFF.Index1();
-    n2=aFF.Index2();
     BOPTools_SequenceOfCurves& aSC=aFF.Curves();
     aNbCurves=aSC.Length();
     for (j=1; j<=aNbCurves; j++) {
diff --git a/src/BRepAdaptor/BRepAdaptor_CompCurve.cxx b/src/BRepAdaptor/BRepAdaptor_CompCurve.cxx
index bd358ed..d652594 100644
--- a/src/BRepAdaptor/BRepAdaptor_CompCurve.cxx
+++ b/src/BRepAdaptor/BRepAdaptor_CompCurve.cxx
@@ -77,9 +77,8 @@ BRepAdaptor_CompCurve::BRepAdaptor_CompCurve(const TopoDS_Wire& W,
                            // a rebourt.
   if((NbEdge > 2) || ((NbEdge==2) && (!myWire.Closed())) ) {
     TopAbs_Orientation Or = myCurves->Value(1).Edge().Orientation();
-    Standard_Boolean B;
     TopoDS_Vertex VI, VL;
-    B = TopExp::CommonVertex(myCurves->Value(1).Edge(),
+    TopExp::CommonVertex(myCurves->Value(1).Edge(),
 			     myCurves->Value(2).Edge(),
 			     VI);
     VL = TopExp::LastVertex(myCurves->Value(1).Edge());
diff --git a/src/BRepAlgo/BRepAlgo_TopOpe.cxx b/src/BRepAlgo/BRepAlgo_TopOpe.cxx
index c041f72..0a23a04 100644
--- a/src/BRepAlgo/BRepAlgo_TopOpe.cxx
+++ b/src/BRepAlgo/BRepAlgo_TopOpe.cxx
@@ -254,7 +254,7 @@ const TopTools_ListOfShape& BRepAlgo_TopOpe::GetSectionEdgeSet()
   TopTools_MapOfShape ME;
   ME.Clear();
 
-  Standard_Integer i, j,  aNbFFs, aNbS, aNbCurves, nSect;
+  Standard_Integer i, j,  aNbFFs, aNbCurves, nSect;
     
   const BooleanOperations_ShapesDataStructure& aDS=myDSFiller->DS();
   const BOPTools_InterferencePool& anInterfPool=myDSFiller->InterfPool();
@@ -270,7 +270,6 @@ const TopTools_ListOfShape& BRepAlgo_TopOpe::GetSectionEdgeSet()
     //
     // Old Section Edges
     const BOPTools_ListOfPaveBlock& aSectList=aFFi.PaveBlocks();
-    aNbS=aSectList.Extent();
     BOPTools_ListIteratorOfListOfPaveBlock anIt(aSectList);
     for (; anIt.More();anIt.Next()) {
       const BOPTools_PaveBlock& aPB=anIt.Value();
@@ -291,7 +290,6 @@ const TopTools_ListOfShape& BRepAlgo_TopOpe::GetSectionEdgeSet()
     for (j=1; j<=aNbCurves; j++) {
       BOPTools_Curve& aBC=aBCurves(j);
       const BOPTools_ListOfPaveBlock& aSectEdges=aBC.NewPaveBlocks();
-      aNbS=aSectEdges.Extent();
       
       BOPTools_ListIteratorOfListOfPaveBlock aPBIt(aSectEdges);
       for (; aPBIt.More(); aPBIt.Next()) {
diff --git a/src/BRepBlend/BRepBlend_CurvPointRadInv.cxx b/src/BRepBlend/BRepBlend_CurvPointRadInv.cxx
index aaed2e2..537a05d 100644
--- a/src/BRepBlend/BRepBlend_CurvPointRadInv.cxx
+++ b/src/BRepBlend/BRepBlend_CurvPointRadInv.cxx
@@ -68,14 +68,13 @@ Standard_Boolean BRepBlend_CurvPointRadInv::Derivatives(const math_Vector& X,
 {
   gp_Pnt ptcur1, ptcur2;
   gp_Vec d1cur1,d2cur1, d1cur2, nplan, dnplan;
-  Standard_Real theD, dtheD, normd1cur1, unsurnormd1cur1;
+  Standard_Real dtheD, normd1cur1, unsurnormd1cur1;
 
   curv1->D2(X(1), ptcur1, d1cur1, d2cur1);
 
   normd1cur1      = d1cur1.Magnitude();
   unsurnormd1cur1 = 1. / normd1cur1;
   nplan           = unsurnormd1cur1 * d1cur1;
-  theD            = -(nplan.XYZ().Dot(ptcur1.XYZ()));
   dnplan.SetLinearForm(-nplan.Dot(d2cur1), nplan, d2cur1);
   dnplan.Multiply(unsurnormd1cur1);
   dtheD  = - nplan.XYZ().Dot(d1cur1.XYZ()) - dnplan.XYZ().Dot(ptcur1.XYZ());
@@ -97,10 +96,8 @@ Standard_Boolean BRepBlend_CurvPointRadInv::Values(const math_Vector& X,
 						   math_Vector& F,
 						   math_Matrix& D) 
 {
-  Standard_Boolean Retour;
-
-  Retour = Value(X, F);
-  Retour = Derivatives(X, D);
+  Value(X, F);
+  Derivatives(X, D);
 
   return Standard_True;
 }
diff --git a/src/BRepBlend/BRepBlend_RstRstConstRad.cxx b/src/BRepBlend/BRepBlend_RstRstConstRad.cxx
index 1d56a46..041438e 100644
--- a/src/BRepBlend/BRepBlend_RstRstConstRad.cxx
+++ b/src/BRepBlend/BRepBlend_RstRstConstRad.cxx
@@ -122,10 +122,8 @@ Standard_Boolean BRepBlend_RstRstConstRad::Values(const math_Vector& X,
 						  math_Vector&       F,
 						  math_Matrix&       D)
 {
-  Standard_Boolean Error;
-
-  Error = Value(X, F);  
-  Error = Derivatives(X, D);
+  Value(X, F);  
+  Derivatives(X, D);
  
   return Standard_True;
 }
@@ -453,9 +451,7 @@ Blend_DecrochStatus BRepBlend_RstRstConstRad::Decroch(const math_Vector& Sol,
   // Normal to the reference surface 2
   NRst2     = d1u.Crossed(d1v);
 
-  Standard_Boolean IsCenter;
-
-  IsCenter = CenterCircleRst1Rst2(PtTmp1, PtTmp2, nplan, Center, NotUsed);
+  CenterCircleRst1Rst2(PtTmp1, PtTmp2, nplan, Center, NotUsed);
 
   norm      = nplan.Crossed(NRst1).Magnitude();
   unsurnorm = 1. / norm;
@@ -594,9 +590,7 @@ void BRepBlend_RstRstConstRad::Section(const Standard_Real Param,
   ptrst1   = cons1.Value(U);
   ptrst2   = cons2.Value(V);
 
-  Standard_Boolean IsCenter;
-
-  IsCenter = CenterCircleRst1Rst2(ptrst1, ptrst2, np, Center, NotUsed);
+  CenterCircleRst1Rst2(ptrst1, ptrst2, np, Center, NotUsed);
 
   C.SetRadius(Abs(ray));
   ns = gp_Vec(Center, ptrst1).Normalized(); 
@@ -769,8 +763,7 @@ void BRepBlend_RstRstConstRad::Section(const Blend_Point& P,
   }
 
   // Calculate the center of the circle
-  Standard_Boolean IsCenter;
-  IsCenter = CenterCircleRst1Rst2(ptrst1, ptrst2, nplan, Center, NotUsed);
+  CenterCircleRst1Rst2(ptrst1, ptrst2, nplan, Center, NotUsed);
 
   // normals to the section with points 
   ns  = gp_Vec(Center, ptrst1).Normalized();  
diff --git a/src/BRepBlend/BRepBlend_RstRstEvolRad.cxx b/src/BRepBlend/BRepBlend_RstRstEvolRad.cxx
index 0200511..9370e96 100644
--- a/src/BRepBlend/BRepBlend_RstRstEvolRad.cxx
+++ b/src/BRepBlend/BRepBlend_RstRstEvolRad.cxx
@@ -184,10 +184,8 @@ Standard_Boolean BRepBlend_RstRstEvolRad::Values(const math_Vector& X,
 						 math_Vector&       F,
 						 math_Matrix&       D)
 {
-  Standard_Boolean Error;
-
-  Error = Value(X, F);  
-  Error = Derivatives(X, D);
+  Value(X, F);  
+  Derivatives(X, D);
  
   return Standard_True;
 }
@@ -524,9 +522,7 @@ Blend_DecrochStatus BRepBlend_RstRstEvolRad::Decroch(const math_Vector& Sol,
   // Normal to the reference surface 2
   NRst2     = d1u.Crossed(d1v);
 
-  Standard_Boolean IsCenter;
-
-  IsCenter = CenterCircleRst1Rst2(PtTmp1, PtTmp2, nplan, Center, NotUsed);
+  CenterCircleRst1Rst2(PtTmp1, PtTmp2, nplan, Center, NotUsed);
 
   norm      = nplan.Crossed(NRst1).Magnitude();
   unsurnorm = 1. / norm;
@@ -663,9 +659,7 @@ void BRepBlend_RstRstEvolRad::Section(const Standard_Real Param,
   ptrst1   = cons1.Value(U);
   ptrst2   = cons2.Value(V);
 
-  Standard_Boolean IsCenter;
-
-  IsCenter = CenterCircleRst1Rst2(ptrst1, ptrst2, np, Center, NotUsed);
+  CenterCircleRst1Rst2(ptrst1, ptrst2, np, Center, NotUsed);
 
   C.SetRadius(Abs(ray));
   ns = gp_Vec(Center, ptrst1).Normalized(); 
@@ -872,8 +866,7 @@ void BRepBlend_RstRstEvolRad::Section(const Blend_Point& P,
   }
 
   // Calculate the center of the circle
-  Standard_Boolean IsCenter;
-  IsCenter = CenterCircleRst1Rst2(ptrst1, ptrst2, nplan, Center, NotUsed);
+  CenterCircleRst1Rst2(ptrst1, ptrst2, nplan, Center, NotUsed);
 
   // normals to the section with points 
   n1  = gp_Vec(Center, ptrst1).Normalized();  
diff --git a/src/BRepBlend/BRepBlend_RstRstLineBuilder.cxx b/src/BRepBlend/BRepBlend_RstRstLineBuilder.cxx
index 674c5bb..3a836db 100644
--- a/src/BRepBlend/BRepBlend_RstRstLineBuilder.cxx
+++ b/src/BRepBlend/BRepBlend_RstRstLineBuilder.cxx
@@ -1426,7 +1426,7 @@ Blend_Status BRepBlend_RstRstLineBuilder::CheckDeflectionOnRst1(const Blend_Poin
   if(!prevpointistangent){
     prevTg = previousP.TangentOnC1();
   }
-  Standard_Real Norme, curNorme;
+  Standard_Real Norme;
 #ifndef DEB
   Standard_Real prevNorme = 0.;
 #else
@@ -1434,7 +1434,6 @@ Blend_Status BRepBlend_RstRstLineBuilder::CheckDeflectionOnRst1(const Blend_Poin
 #endif
   gp_Vec Corde(prevP, Psurf);
   Norme = Corde.SquareMagnitude();
-  if (!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
   if (!prevpointistangent) prevNorme = prevTg.SquareMagnitude();
 
   if (Norme <= tolesp * tolesp) {
@@ -1508,7 +1507,7 @@ Blend_Status BRepBlend_RstRstLineBuilder::CheckDeflectionOnRst2(const Blend_Poin
   if (!prevpointistangent) {
     prevTg = previousP.TangentOnC2();
   }
-  Standard_Real Norme, curNorme;
+  Standard_Real Norme;
 #ifndef DEB
   Standard_Real prevNorme = 0.;
 #else
@@ -1516,7 +1515,6 @@ Blend_Status BRepBlend_RstRstLineBuilder::CheckDeflectionOnRst2(const Blend_Poin
 #endif
   gp_Vec Corde(prevP, Psurf);
   Norme = Corde.SquareMagnitude();
-  if (!curpointistangent) curNorme   = Tgsurf.SquareMagnitude();
   if (!prevpointistangent) prevNorme = prevTg.SquareMagnitude();
 
   if (Norme <= tolesp * tolesp){
diff --git a/src/BRepBlend/BRepBlend_SurfPointEvolRadInv.cxx b/src/BRepBlend/BRepBlend_SurfPointEvolRadInv.cxx
index e97326d..c1c8f1a 100644
--- a/src/BRepBlend/BRepBlend_SurfPointEvolRadInv.cxx
+++ b/src/BRepBlend/BRepBlend_SurfPointEvolRadInv.cxx
@@ -85,7 +85,7 @@ const Handle(Adaptor3d_HCurve)& C,
 {
   gp_Pnt ptcur,pts;
   gp_Vec d1cur,d2cur,nplan,dnplan,d1u,d1v,d2u,d2v,duv;
-  Standard_Real theD, dtheD, normd1cur, unsurnormd1cur,dray;
+  Standard_Real dtheD, normd1cur, unsurnormd1cur,dray;
 
   curv->D2(X(1),ptcur,d1cur,d2cur);
   tevol->D1(X(1),ray,dray);
@@ -94,7 +94,6 @@ const Handle(Adaptor3d_HCurve)& C,
   normd1cur = d1cur.Magnitude();
   unsurnormd1cur = 1./normd1cur;
   nplan = unsurnormd1cur * d1cur;
-  theD = -(nplan.XYZ().Dot(ptcur.XYZ()));
   dnplan.SetLinearForm(-nplan.Dot(d2cur),nplan,d2cur);
   dnplan.Multiply(unsurnormd1cur);
   dtheD = - nplan.XYZ().Dot(d1cur.XYZ()) - dnplan.XYZ().Dot(ptcur.XYZ());
diff --git a/src/BRepCheck/BRepCheck_Wire.cxx b/src/BRepCheck/BRepCheck_Wire.cxx
index b141b08..8550542 100644
--- a/src/BRepCheck/BRepCheck_Wire.cxx
+++ b/src/BRepCheck/BRepCheck_Wire.cxx
@@ -811,7 +811,6 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
 {
 
 
-  Standard_Boolean ok;
   Standard_Integer i,j,Nbedges;
   Standard_Real first1,last1,first2,last2, tolint;
   gp_Pnt2d pfirst1,plast1,pfirst2,plast2;
@@ -823,7 +822,6 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
   TopTools_IndexedMapOfOrientedShape EMap;
   TopTools_MapOfOrientedShape auxmape;
   //
-  ok=Standard_True;
   //-- on verifie plus loin avec les bonnes tolerances si on n a 
   //-- pas un point dans la tolerance d un vertex.
   tolint = 1.e-10; 
@@ -929,7 +927,6 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
 	    }
 	  }
 	  if(localok==Standard_False) { 
-	    ok=0;
 	    retE1=E1;
 	    if (Update) {
 	      BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
@@ -1095,23 +1092,20 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
 	      cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<endl;
 	      
 #endif
-	      Standard_Boolean yaunvtxproche;
 	      Standard_Real distauvtxleplusproche,VParaOnEdge1,VParaOnEdge2;
 	      gp_Pnt VertexLePlusProche;
 	      //
-	      yaunvtxproche=Standard_False;
 	      VParaOnEdge1 =0.;
 	      VParaOnEdge2 =0.;
 	      distauvtxleplusproche=RealLast();
 	      //Find the nearest common vertex
 	      itl.Initialize( CommonVertices );
 	      for (; itl.More(); itl.Next())   {
-		Standard_Real tolvtt, disptvtx;
+		Standard_Real disptvtx;
 		gp_Pnt p3dvtt;
 		//
 		const TopoDS_Vertex& vtt = TopoDS::Vertex(itl.Value());
 		p3dvtt = BRep_Tool::Pnt(vtt);
-		tolvtt = BRep_Tool::Tolerance(vtt);
 		disptvtx = P3d.Distance(p3dvtt);
 		if (disptvtx < distauvtxleplusproche)	{
 		  VertexLePlusProche = p3dvtt; 
@@ -1218,7 +1212,6 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
 	    } //end of if (localok == Standard_False && !CommonVertices.IsEmpty())
 	    //
 	    if(localok==Standard_False)	  { 
-	      ok=0;
 	      retE1=E1;
 	      retE2=E2;
 	      if (Update) {
@@ -1353,7 +1346,6 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
 	    } //end of for (k = 0; k < 2; k++)
 	    //
 	    if(localok==Standard_False)	  { 
-	      ok=0;
 	      retE1=E1;
 	      retE2=E2;
 	      if (Update) {
diff --git a/src/BRepFeat/BRepFeat_Form.cxx b/src/BRepFeat/BRepFeat_Form.cxx
index af23a95..714a77f 100644
--- a/src/BRepFeat/BRepFeat_Form.cxx
+++ b/src/BRepFeat/BRepFeat_Form.cxx
@@ -179,7 +179,6 @@ static void Descendants(const TopoDS_Shape&,
   TColGeom_SequenceOfCurve scur;
   Curves(scur);
 
-  Standard_Integer tempo;
   Standard_Real locmin;
   Standard_Real locmax;
   Standard_Real mf, Mf, mu, Mu;
@@ -225,7 +224,6 @@ static void Descendants(const TopoDS_Shape&,
 #endif
   {
 //  Determination sens,locmin,locmax,FFrom,FUntil
-    tempo=0;
     locmin = RealFirst();
     locmax = RealLast();
     for (Standard_Integer jj=1; jj<=scur.Length(); jj++) {
diff --git a/src/BRepFeat/BRepFeat_MakeLinearForm.cxx b/src/BRepFeat/BRepFeat_MakeLinearForm.cxx
index b120de3..b759f43 100644
--- a/src/BRepFeat/BRepFeat_MakeLinearForm.cxx
+++ b/src/BRepFeat/BRepFeat_MakeLinearForm.cxx
@@ -1026,18 +1026,16 @@ void BRepFeat_MakeLinearForm::Perform()
 
   TopoDS_Vertex Vprevious;
   gp_Pnt ptprev;
-  Standard_Real tvp, dp;
+  Standard_Real dp;
 
   while (!(LastOK && FirstOK)) {
     if (v1OK) {
       Vprevious=v2;
       ptprev=p2;
-      tvp=t2;
     }
     else {
       Vprevious=v1;
       ptprev=p1;
-      tvp=t1;
     }
     
     // retrouver l'edge connexe a v1 ou v2:
diff --git a/src/BRepFeat/BRepFeat_RibSlot.cxx b/src/BRepFeat/BRepFeat_RibSlot.cxx
index 6228f6e..780df82 100644
--- a/src/BRepFeat/BRepFeat_RibSlot.cxx
+++ b/src/BRepFeat/BRepFeat_RibSlot.cxx
@@ -128,14 +128,12 @@ void BRepFeat_RibSlot::LFPerform()
 
   Standard_Boolean ChangeOpe = Standard_False;
       // On espere qu`il n`y a qu`un solide dans le resultat
-  Standard_Boolean UntilInShape = Standard_False;
 
   TopTools_MapOfShape M;
   TopTools_ListOfShape LShape;
   TopTools_ListOfShape LTool;
 
   if (!mySUntil.IsNull()) {
-    UntilInShape = Standard_True;
     for (exp2.Init(mySUntil,TopAbs_FACE); exp2.More(); exp2.Next()) {
       const TopoDS_Shape& funtil = exp2.Current();
       for (exp.Init(mySbase,TopAbs_FACE); exp.More(); exp.Next()) {
@@ -144,7 +142,6 @@ void BRepFeat_RibSlot::LFPerform()
 	}
       }
       if (!exp.More()) {
-	UntilInShape = Standard_False;
 	break;
       }
       else {
@@ -1367,9 +1364,6 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
       f = f - bnd/10000; l = l +bnd/10000;
       Handle(Geom_TrimmedCurve) curve;
       curve = new Geom_TrimmedCurve(Cur, f, l, Standard_True);
-#ifdef DEB
-      gp_Pnt P1 = 
-#endif
 	BRep_Tool::Pnt(TopExp::FirstVertex(E,Standard_True));
       gp_Pnt P2 = BRep_Tool::Pnt(TopExp::LastVertex(E,Standard_True));
       ex1.Init(mySbase, TopAbs_FACE);
diff --git a/src/BRepFill/BRepFill_CompatibleWires.cxx b/src/BRepFill/BRepFill_CompatibleWires.cxx
index 7dbb931..e04c24d 100644
--- a/src/BRepFill/BRepFill_CompatibleWires.cxx
+++ b/src/BRepFill/BRepFill_CompatibleWires.cxx
@@ -387,10 +387,7 @@ static Standard_Boolean EdgeIntersectOnWire (const gp_Pnt& P1,
 	isol = iss;
       }
     }
-#ifdef DEB
-    gp_Pnt Psol = 
-#endif
-      DSS.PointOnShape2(isol);
+    DSS.PointOnShape2(isol);
     // la solution est-elle un nouveau vertex ?
     NewVertex = (DSS.SupportTypeShape2(isol) != BRepExtrema_IsVertex);
     if (NewVertex) {
diff --git a/src/BRepFill/BRepFill_Sweep.cxx b/src/BRepFill/BRepFill_Sweep.cxx
index a181acb..cdc52bd 100644
--- a/src/BRepFill/BRepFill_Sweep.cxx
+++ b/src/BRepFill/BRepFill_Sweep.cxx
@@ -900,20 +900,16 @@ static Standard_Boolean Filling(const TopoDS_Shape& EF,
 		     f2, l2, C3);
   C2 = C3;
 
-  Standard_Boolean pointu_f,  pointu_l;
 //  P1 = BT.Pnt(Vf);
   P1 = BRep_Tool::Pnt(Vf);
 //  P2 = BT.Pnt(V1);
   P2 = BRep_Tool::Pnt(V1);
 //  pointu_f = Vf.IsSame(V1) || (P1.Distance(P2) < BT.Tolerance(Vf));
-  pointu_f = Vf.IsSame(V1) || (P1.Distance(P2) < BRep_Tool::Tolerance(Vf));
 //  P1 = BT.Pnt(Vl);
   P1 = BRep_Tool::Pnt(Vl);
 //  P2 = BT.Pnt(V2);
   P2 = BRep_Tool::Pnt(V2);
 //  pointu_l = Vl.IsSame(V2) || (P1.Distance(P2) < BT.Tolerance(Vl));
-  pointu_l = Vl.IsSame(V2) || (P1.Distance(P2) < BRep_Tool::Tolerance(Vl));
-
 
   P2d.SetCoord(0.,f1);
   L = new (Geom2d_Line) (P2d, gp::DX2d());
diff --git a/src/BRepFill/BRepFill_TrimShellCorner.cxx b/src/BRepFill/BRepFill_TrimShellCorner.cxx
index 0d52634..b48971d 100644
--- a/src/BRepFill/BRepFill_TrimShellCorner.cxx
+++ b/src/BRepFill/BRepFill_TrimShellCorner.cxx
@@ -544,17 +544,11 @@ Standard_Boolean MakeFacesNonSec(const Standard_Integer                     theI
     Standard_Integer aFaceIndex = (fit == 1) ? theFaceIndex1 : theFaceIndex2;
     TopoDS_Shape aFace          = aDS.Shape(aFaceIndex);
     TopAbs_Orientation aFaceOri = aFace.Orientation();
-    TopAbs_Orientation anEdgeOri = TopAbs_FORWARD;
     aFace.Orientation(TopAbs_FORWARD);
 
     TopExp_Explorer anExpE(aFace, TopAbs_EDGE);
     const TopoDS_Shape& aCheckEdge = (fit == 1) ? aE1 : aE2;
 
-    for(; anExpE.More(); anExpE.Next()) {
-      if(aCheckEdge.IsSame(anExpE.Current()))
-	anEdgeOri = anExpE.Current().Orientation();
-    }
-
     if(bHasNewEdge) {
       aNewEdge.Orientation(TopAbs_FORWARD);
     }
diff --git a/src/BRepFill/BRepFill_TrimSurfaceTool.cxx b/src/BRepFill/BRepFill_TrimSurfaceTool.cxx
index c5405c9..7988482 100644
--- a/src/BRepFill/BRepFill_TrimSurfaceTool.cxx
+++ b/src/BRepFill/BRepFill_TrimSurfaceTool.cxx
@@ -491,9 +491,6 @@ void BRepFill_TrimSurfaceTool::Project
        Handle(Geom2d_Curve)& PCurve2,
        GeomAbs_Shape&        Cont) const 
 {
-  Standard_Integer Deg1, Deg2;
-  Deg1 = Deg2 = 8;
-
   Handle(Geom2d_TrimmedCurve) CT = 
     new Geom2d_TrimmedCurve(myBis,U1,U2);
   BRepFill_MultiLine ML(myFace1,myFace2,
diff --git a/src/BRepGProp/BRepGProp.cxx b/src/BRepGProp/BRepGProp.cxx
index ba35481..770b354 100644
--- a/src/BRepGProp/BRepGProp.cxx
+++ b/src/BRepGProp/BRepGProp.cxx
@@ -134,14 +134,13 @@ void  BRepGProp::VolumeProperties(const TopoDS_Shape& S, GProp_GProps& Props, co
   // find the origin
   gp_Pnt P(0,0,0);  P.Transform(S.Location());
   Props = GProp_GProps(P);
-  Standard_Real Error = 0.0;
   if(OnlyClosed){
     TopExp_Explorer ex(S,TopAbs_SHELL);
     for (; ex.More(); ex.Next()) {
       const TopoDS_Shape& Sh = ex.Current();
-      if(BRep_Tool::IsClosed(Sh)) Error = volumeProperties(Sh,Props,1.0);
+      if(BRep_Tool::IsClosed(Sh)) volumeProperties(Sh,Props,1.0);
     }
-  } else Error = volumeProperties(S,Props,1.0);
+  } else volumeProperties(S,Props,1.0);
 }
 
 //=======================================================================
diff --git a/src/BRepSweep/BRepSweep_Rotation.cxx b/src/BRepSweep/BRepSweep_Rotation.cxx
index 8389d3c..62af7c5 100644
--- a/src/BRepSweep/BRepSweep_Rotation.cxx
+++ b/src/BRepSweep/BRepSweep_Rotation.cxx
@@ -335,11 +335,6 @@ TopoDS_Shape  BRepSweep_Rotation::MakeEmptyFace
       break;
     case GeomAbs_Cylinder :
       {
-#ifdef DEB
-	gp_Cylinder c = AS.Cylinder();
-	gp_Ax3 b = AS.Axis();
-	gp_Ax3 a = c.Position();
-#endif
 	Handle(Geom_CylindricalSurface) Cy = 
 	  new Geom_CylindricalSurface(AS.Cylinder());
 	S = Cy;
diff --git a/src/BRepTest/BRepTest_BasicCommands.cxx b/src/BRepTest/BRepTest_BasicCommands.cxx
index c2f4264..52a9946 100644
--- a/src/BRepTest/BRepTest_BasicCommands.cxx
+++ b/src/BRepTest/BRepTest_BasicCommands.cxx
@@ -265,8 +265,6 @@ static Standard_Integer nurbsconvert(Draw_Interpretor& di,Standard_Integer n,con
 static Standard_Integer mkedgecurve (Draw_Interpretor& ,Standard_Integer n,const char** a)
 {
 
-  Standard_Boolean CurveDone ;
-
   if (n < 3) return 1;
   Standard_Real Tolerance = atof(a[2]) ;
 
@@ -274,7 +272,6 @@ static Standard_Integer mkedgecurve (Draw_Interpretor& ,Standard_Integer n,const
   
   if (S.IsNull()) return 1;
   
-   CurveDone = 
    BRepLib::BuildCurves3d(S,
 			  Tolerance) ;
    return 0 ;
diff --git a/src/BRepTest/BRepTest_CurveCommands.cxx b/src/BRepTest/BRepTest_CurveCommands.cxx
index 45fc1e7..6054adc 100644
--- a/src/BRepTest/BRepTest_CurveCommands.cxx
+++ b/src/BRepTest/BRepTest_CurveCommands.cxx
@@ -937,7 +937,6 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
   Standard_Boolean face  = Standard_True;
   Standard_Boolean close = Standard_True;
 //  Standard_Boolean first = Standard_True;
-  Standard_Boolean stayfirst = Standard_False;
   Standard_Boolean isplanar  = Standard_True;
   Standard_Real  length ; 
   TopoDS_Shape S;
@@ -967,7 +966,6 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
 	  else 
 	    P = Plane->Pln();
 	}
-	stayfirst = Standard_True;
         i += 1 ;
 	break;
 	
diff --git a/src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx b/src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
index b50e75a..fe55c8c 100644
--- a/src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
+++ b/src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
@@ -180,9 +180,6 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
 	      //-- et le dernier point enregistre dans SeqPnt2d
 	      //-- On cherche a eloigner le premier point de l edge courant 
 	      //-- du dernier point enregistre
-#ifdef DEB
-	      gp_Pnt2d Pnt2dDebutEdgeCourant=
-#endif
 	      C.Value(u);
 
 	      //Standard_Real Baillement2dU=0;
diff --git a/src/BiTgte/BiTgte_Blend.cxx b/src/BiTgte/BiTgte_Blend.cxx
index 7222937..306a8a8 100644
--- a/src/BiTgte/BiTgte_Blend.cxx
+++ b/src/BiTgte/BiTgte_Blend.cxx
@@ -221,8 +221,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
   TopLoc_Location Loc;
   Standard_Real Tol = Precision::Confusion();
 
-  Standard_Boolean IsComputed = Standard_False;
-
   // Seach only isos on analytiques surfaces.
   Geom2dAdaptor_Curve C(Curve);
   GeomAdaptor_Surface S(Surf);
@@ -253,7 +251,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	      Circle->Reverse();
 	    TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
 	  }
-	  IsComputed = Standard_True;
 	}
 	else if ( STy == GeomAbs_Cylinder) {
 	  gp_Cylinder Cyl  = S.Cylinder();
@@ -269,7 +266,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	  if ( D.IsOpposite(gp::DX2d(),Precision::Angular())) 
 	    Circle->Reverse();
 	  TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-	  IsComputed = Standard_True;
 	}
 	else if ( STy == GeomAbs_Cone) {
 	  gp_Cone  Cone = S.Cone();
@@ -286,7 +282,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	  if ( D.IsOpposite(gp::DX2d(),Precision::Angular())) 
 	    Circle->Reverse();
 	  TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-	  IsComputed = Standard_True;
 	}
 	else if ( STy == GeomAbs_Torus) {
 	  gp_Torus Tore = S.Torus();
@@ -303,7 +298,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	  if ( D.IsOpposite(gp::DX2d(),Precision::Angular())) 
 	    Circle->Reverse();
 	  TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-	  IsComputed = Standard_True;
 	}
       }
       else if ( D.IsParallel(gp::DY2d(),Precision::Angular())) { // Iso U.
@@ -328,7 +322,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	  if ( D.IsOpposite(gp::DY2d(),Precision::Angular())) 
 	    Circle->Reverse();
 	  TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
-	  IsComputed = Standard_True;
 	}
 	else if ( STy == GeomAbs_Cylinder) {
 	  gp_Cylinder Cyl = S.Cylinder();
@@ -343,7 +336,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	  if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
 	    Line->Reverse();
 	  TheBuilder.UpdateEdge(Edge, Line, Loc, Tol);
-	  IsComputed = Standard_True;
 	}
 	else if ( STy == GeomAbs_Cone) {
 	  gp_Cone  Cone = S.Cone();
@@ -358,7 +350,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
 	  if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
 	    Line->Reverse();
 	  TheBuilder.UpdateEdge(Edge, Line, Loc, Tol);
-	  IsComputed = Standard_True;
 	}
 	else if ( STy == GeomAbs_Torus) {
 	}
@@ -368,7 +359,6 @@ static void KPartCurve3d(TopoDS_Edge           Edge,
   else { // Cas Plan
     Handle(Geom_Curve) C3d = GeomAPI::To3d(Curve,S.Plane());
     TheBuilder.UpdateEdge(Edge, C3d, Loc, Tol);
-    IsComputed = Standard_True;
   }
 }
 
@@ -1885,9 +1875,6 @@ void BiTgte_Blend::ComputeSurfaces()
   // Iteration sur les les edges lignes de centre
   // et On prend leur partie valide apres decoupe, et construction tuyau.
   // --------------------------------------------------------------------
-  BRepOffset_Type    OT = BRepOffset_Concave;
-  if (myRadius < 0.) OT = BRepOffset_Convex; 
-
   TopTools_MapIteratorOfMapOfShape ic(myEdges);
   for ( ; ic.More(); ic.Next()) {
     const TopoDS_Edge& CurE = TopoDS::Edge(ic.Key());
diff --git a/src/Bisector/Bisector_BisecAna.cxx b/src/Bisector/Bisector_BisecAna.cxx
index 17a72ff..2f2ccb1 100644
--- a/src/Bisector/Bisector_BisecAna.cxx
+++ b/src/Bisector/Bisector_BisecAna.cxx
@@ -1014,14 +1014,14 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Point)& afirstpoint  ,
 				const Standard_Boolean      oncurve       )
 {
   Standard_Boolean sense,ok;
-  Standard_Real distanceptsol,parameter;
+  Standard_Real parameter;
 
   GccAna_Pnt2dBisec bisector(afirstpoint->Pnt2d(),asecondpoint->Pnt2d());
   gp_Lin2d line = bisector.ThisSolution();
   Handle(GccInt_Bisec) solution = new GccInt_BLine(line);
 
   sense = Standard_False;
-  distanceptsol = Distance(apoint,solution,
+  Distance(apoint,solution,
 			   afirstvector,asecondvector,
 			   adirection,parameter,sense,ok);
   if (ok || !oncurve) {
diff --git a/src/Bisector/Bisector_BisecPC.cxx b/src/Bisector/Bisector_BisecPC.cxx
index 793e91e..20ca97f 100644
--- a/src/Bisector/Bisector_BisecPC.cxx
+++ b/src/Bisector/Bisector_BisecPC.cxx
@@ -588,7 +588,7 @@ gp_Vec2d Bisector_BisecPC::DN (const Standard_Real     U,
 Standard_Real Bisector_BisecPC::SearchBound (const Standard_Real U1,
 					     const Standard_Real U2) const
 {
-  Standard_Real Dist1,Dist2,DistMid,U11,U22; 
+  Standard_Real Dist1,DistMid,U11,U22; 
 #ifndef DEB
   Standard_Real UMid = 0.;
 #else
@@ -598,7 +598,6 @@ Standard_Real Bisector_BisecPC::SearchBound (const Standard_Real U1,
   Standard_Real DistMax2 = distMax*distMax;
   U11 = U1; U22 = U2;
   Dist1 = Distance(U11);
-  Dist2 = Distance(U22);
   
   while ((U22 - U11) > Tol) {
     UMid    = 0.5*( U22 + U11);
@@ -609,7 +608,6 @@ Standard_Real Bisector_BisecPC::SearchBound (const Standard_Real U1,
     }
     else {
       U22    = UMid;
-      Dist2 = DistMid;
     }
   }
   return UMid;
diff --git a/src/Bisector/Bisector_Inter.cxx b/src/Bisector/Bisector_Inter.cxx
index 15a5688..1aa4bad 100644
--- a/src/Bisector/Bisector_Inter.cxx
+++ b/src/Bisector/Bisector_Inter.cxx
@@ -328,13 +328,8 @@ void Bisector_Inter::NeighbourPerform(const Handle(Bisector_BisecCC)&  Bis1,
   // Changement ligne guide sur Bis2.
   BisTemp      = Bis2->ChangeGuide();
   Guide        = Bis2->Curve(2);
-#ifdef DEB
-  gp_Pnt2d P2S = Bis2->ValueAndDist(D2.FirstParameter(),U1,UMax,Dist);
-  gp_Pnt2d P2E = Bis2->ValueAndDist(D2.LastParameter() ,U1,UMin,Dist);
-#else
   Bis2->ValueAndDist(D2.FirstParameter(),U1,UMax,Dist);
   Bis2->ValueAndDist(D2.LastParameter() ,U1,UMin,Dist);
-#endif
   // Calcul du domaine d intersection sur la ligne guide.
   UMin = Max (D1.FirstParameter(),UMin);
   UMax = Min (D1.LastParameter() ,UMax);
diff --git a/src/BlendFunc/BlendFunc_ConstRad.cxx b/src/BlendFunc/BlendFunc_ConstRad.cxx
index 1e8b0d1..ed058f2 100644
--- a/src/BlendFunc/BlendFunc_ConstRad.cxx
+++ b/src/BlendFunc/BlendFunc_ConstRad.cxx
@@ -1148,9 +1148,8 @@ void BlendFunc_ConstRad::Section(const Standard_Real Param,
   math_Vector X(1,4);
   X(1) = U1; X(2) = V1; X(3) = U2; X(4) = V2; 
   Standard_Real prm = Param;
-  Standard_Boolean Ok;
 
-  Ok = ComputeValues(X, 0, Standard_True, prm);
+  ComputeValues(X, 0, Standard_True, prm);
 
   ns1 = nsurf1;
   np = nplan;
@@ -1307,7 +1306,6 @@ void BlendFunc_ConstRad::Section(const Blend_Point& P,
 
   math_Vector X(1,4);
   Standard_Real prm = P.Parameter();
-  Standard_Boolean Ok;
 
   Standard_Integer low = Poles.Lower();
   Standard_Integer upp = Poles.Upper();
@@ -1315,7 +1313,7 @@ void BlendFunc_ConstRad::Section(const Blend_Point& P,
   P.ParametersOnS1(X(1), X(2));
   P.ParametersOnS2(X(3), X(4));
 
-  Ok = ComputeValues(X, 0, Standard_True, prm);
+  ComputeValues(X, 0, Standard_True, prm);
   distmin = Min (distmin, pts1.Distance(pts2));
 
   // ns1, ns2, np are copied locally to avoid crushing the fields !
diff --git a/src/BlendFunc/BlendFunc_EvolRad.cxx b/src/BlendFunc/BlendFunc_EvolRad.cxx
index f686fff..b09f913 100644
--- a/src/BlendFunc/BlendFunc_EvolRad.cxx
+++ b/src/BlendFunc/BlendFunc_EvolRad.cxx
@@ -1132,9 +1132,8 @@ void BlendFunc_EvolRad::Section(const Standard_Real Param,
   math_Vector X(1,4);
   X(1) = U1; X(2) = V1; X(3) = U2; X(4) = V2; 
   Standard_Real prm = Param;
-  Standard_Boolean Ok;
 
-  Ok = ComputeValues(X, 0, Standard_True, prm);
+  ComputeValues(X, 0, Standard_True, prm);
 
   ns1 = nsurf1;
   np = nplan;
@@ -1405,7 +1404,6 @@ void BlendFunc_EvolRad::Section(const Blend_Point& P,
 
   math_Vector X(1,4);
   Standard_Real prm = P.Parameter();
-  Standard_Boolean Ok;
 
   Standard_Integer low = Poles.Lower();
   Standard_Integer upp = Poles.Upper();
@@ -1414,7 +1412,7 @@ void BlendFunc_EvolRad::Section(const Blend_Point& P,
   P.ParametersOnS2(X(3), X(4));
 
   // Calculation and storage of distmin
-  Ok = ComputeValues(X, 0, Standard_True, prm);
+  ComputeValues(X, 0, Standard_True, prm);
   distmin = Min (distmin, pts1.Distance(pts2));
 
   // ns1, ns2, np are copied locally to avoid crashing the fields !
diff --git a/src/ChFi2d/ChFi2d_Builder.cxx b/src/ChFi2d/ChFi2d_Builder.cxx
index 2c18d36..8efcb79 100644
--- a/src/ChFi2d/ChFi2d_Builder.cxx
+++ b/src/ChFi2d/ChFi2d_Builder.cxx
@@ -768,10 +768,9 @@ TopoDS_Edge ChFi2d_Builder::BuildFilletEdge(const TopoDS_Vertex& V,
   //    The first arc is found.                                        +
   //========================================================================
 
-  TopAbs_Orientation O1,O2;
-  TopAbs_Orientation OE1,OE2;
+  TopAbs_Orientation O1;
+  TopAbs_Orientation OE1;
   OE1 = E1.Orientation();
-  OE2 = E2.Orientation();
   E1.Orientation(TopAbs_FORWARD);
   E2.Orientation(TopAbs_FORWARD);
   TopoDS_Shape aLocalShape = E1.EmptyCopied();
@@ -799,12 +798,10 @@ TopoDS_Edge ChFi2d_Builder::BuildFilletEdge(const TopoDS_Vertex& V,
   if (V3.IsSame(V)) {
     param3 = BRep_Tool::Parameter(V3,E2);
     param4 = BRep_Tool::Parameter(V4,E2);
-    O2 = V4.Orientation();
   }
   else {
     param3 = BRep_Tool::Parameter(V4,E2);
     param4 = BRep_Tool::Parameter(V3,E2);
-    O2 = V3.Orientation();
   }
   
   //========================================================================
diff --git a/src/ChFi3d/ChFi3d_Builder_2.cxx b/src/ChFi3d/ChFi3d_Builder_2.cxx
index a530252..3c1a8dd 100644
--- a/src/ChFi3d/ChFi3d_Builder_2.cxx
+++ b/src/ChFi3d/ChFi3d_Builder_2.cxx
@@ -2294,7 +2294,7 @@ void ChFi3d_Builder::PerformSetOfKPart(Handle(ChFiDS_Stripe)& Stripe,
   Handle(ChFiDS_Spine)&        Spine = Stripe->ChangeSpine();
   Handle(BRepAdaptor_HSurface) HS1,HS2;
   TopAbs_Orientation           Or1,Or2,RefOr1,RefOr2;
-  Standard_Integer             Choix,RefChoix;
+  Standard_Integer             RefChoix;
   
   // initialization of the stripe.
   Stripe->Reset();
@@ -2338,7 +2338,7 @@ void ChFi3d_Builder::PerformSetOfKPart(Handle(ChFiDS_Stripe)& Stripe,
       intl = ((iedge == Spine->NbEdges()) && !Spine->IsPeriodic());
       Or1   = HS1->ChangeSurface().Face().Orientation();
       Or2   = HS2->ChangeSurface().Face().Orientation();
-      Choix = ChFi3d::NextSide(Or1,Or2,RefOr1,RefOr2,RefChoix);      
+      ChFi3d::NextSide(Or1,Or2,RefOr1,RefOr2,RefChoix);      
       It1->Initialize(HS1);
       It2->Initialize(HS2);
       
diff --git a/src/ChFi3d/ChFi3d_Builder_C1.cxx b/src/ChFi3d/ChFi3d_Builder_C1.cxx
index 867349f..9a11296 100644
--- a/src/ChFi3d/ChFi3d_Builder_C1.cxx
+++ b/src/ChFi3d/ChFi3d_Builder_C1.cxx
@@ -3814,10 +3814,9 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
     if(!CV1.IsOnArc() && !CV2.IsOnArc())
       Standard_Failure::Raise("Corner intersmore : no point on arc");
     else if(CV1.IsOnArc() && CV2.IsOnArc()){
-      Standard_Boolean sur1 = 0, sur2 = 0;
+      Standard_Boolean sur2 = 0;
       for(ex.Init(CV1.Arc(),TopAbs_VERTEX); ex.More(); ex.Next()){
 	if(Vtx.IsSame(ex.Current())) {
-	  sur1 = 1;
 	  break;
 	}
       }
diff --git a/src/ChFi3d/ChFi3d_Builder_C2.cxx b/src/ChFi3d/ChFi3d_Builder_C2.cxx
index 9e25753..a273f82 100644
--- a/src/ChFi3d/ChFi3d_Builder_C2.cxx
+++ b/src/ChFi3d/ChFi3d_Builder_C2.cxx
@@ -162,11 +162,8 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   // Otherwise the opposite face  
   // and the eventual intersection of 2 pcurves on this face are found.
 
-  ChFiDS_State Stat1,Stat2;
   Standard_Boolean isfirst1 = (Sens1 == 1);
   Standard_Boolean isfirst2 = (Sens2 == 1);
-  Stat1 = Corner1->Spine()->Status(isfirst1);
-  Stat2 = Corner2->Spine()->Status(isfirst2);
 /*#ifdef DEB
   Standard_Boolean evolcoin = ((Stat1 == ChFiDS_OnSame && Stat2 == ChFiDS_OnDiff) || 
 			       (Stat2 == ChFiDS_OnSame && Stat1 == ChFiDS_OnDiff));
diff --git a/src/ChFi3d/ChFi3d_FilBuilder.cxx b/src/ChFi3d/ChFi3d_FilBuilder.cxx
index de057d9..653a933 100644
--- a/src/ChFi3d/ChFi3d_FilBuilder.cxx
+++ b/src/ChFi3d/ChFi3d_FilBuilder.cxx
@@ -1400,8 +1400,6 @@ void  ChFi3d_FilBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&          SeqData
     maybesingular = (func.GetMinimalDistance()<=100*tolapp3d); 
   }
   else {
-   Standard_Real SpFirst = HGuide->FirstParameter();
-  Standard_Real SpLast =  HGuide->LastParameter();
     BRepBlend_SurfRstEvolRad func(HS2,HS1,PC1,HGuide,fsp->Law(HGuide));
     func.Set(HSref1,PCref1);
     Handle(Adaptor3d_HCurveOnSurface) HC = new Adaptor3d_HCurveOnSurface();
@@ -1419,7 +1417,6 @@ void  ChFi3d_FilBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&          SeqData
     finvp.Set(petitchoix);
     func.Set(petitchoix);
     func.Set(myShape);
-    SpFirst = HGuide->FirstParameter();SpLast =  HGuide->LastParameter();
     done = ComputeData(Data,HGuide,lin,HS2,I2,HS1,PC1,I1,Decroch1,
 		       func,finv,finvp,finvc,
 		       PFirst,MaxStep,Fleche,TolGuide,First,Last,
@@ -1885,7 +1882,6 @@ void ChFi3d_FilBuilder::ExtentTwoCorner(const TopoDS_Vertex& V,
   // to faces and tangents to the guideline.
   Standard_Integer Sens;
   Standard_Real    Coeff = 0.3, Eval=0.0, dU, rad;
-  Standard_Integer IE;
   ChFiDS_ListIteratorOfListOfStripe itel(LS);
   Standard_Boolean FF = Standard_True;
   Handle(ChFiDS_Stripe) Stripe;
@@ -1915,7 +1911,7 @@ void ChFi3d_FilBuilder::ExtentTwoCorner(const TopoDS_Vertex& V,
 
   // One applies
   for (itel.Initialize(LS) ; itel.More(); itel.Next()) {    
-    IE = ChFi3d_IndexOfSurfData(V,itel.Value(),Sens);
+    ChFi3d_IndexOfSurfData(V,itel.Value(),Sens);
     if (!FF && Stripe == itel.Value()) Sens = -Sens;
     Stripe = itel.Value();
     Spine = Stripe->Spine();
diff --git a/src/ChFiDS/ChFiDS_FilSpine.cxx b/src/ChFiDS/ChFiDS_FilSpine.cxx
index 36cb0da..81ec811 100644
--- a/src/ChFiDS/ChFiDS_FilSpine.cxx
+++ b/src/ChFiDS/ChFiDS_FilSpine.cxx
@@ -171,9 +171,6 @@ void  ChFiDS_FilSpine::SetRadius(const gp_XY&           UandR,
     Handle(ChFiDS_HElSpine) Els = It.Value();
     if (Els->IsPeriodic()) Itl.Value() = ComputeLaw(Els);
     else{
-      Standard_Real nW = W;
-      if(IsPeriodic())
-	nW = ElCLib::InPeriod(W,FirstParameter(),LastParameter());
       for (; It.More(); It.Next(), Itl.Next()) {
 	Els = It.Value();
 	Standard_Real uf = Els->FirstParameter();
diff --git a/src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx b/src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx
index affc307..c960039 100644
--- a/src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx
+++ b/src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx
@@ -66,13 +66,12 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
 
   // Parallel cylinder
   Standard_Real    ROff = Cyl.Radius();
-  Standard_Boolean dedans = Standard_False;
 
   if ((Or2 == TopAbs_FORWARD  &&  Cyl.Direct()) ||
       (Or2 == TopAbs_REVERSED && !Cyl.Direct()))
       ROff+=Radius;
   else if (Radius < ROff)  {
-    ROff-=Radius;dedans = Standard_True;
+    ROff-=Radius;
   }
   else {
 #ifdef DEB
diff --git a/src/DDataStd/DDataStd_Sample.cxx b/src/DDataStd/DDataStd_Sample.cxx
index 9251e51..d8fc8da 100644
--- a/src/DDataStd/DDataStd_Sample.cxx
+++ b/src/DDataStd/DDataStd_Sample.cxx
@@ -57,12 +57,6 @@ static void Sample()
 
   Handle(TDataStd_Integer) I = TDataStd_Integer::Set(aLabel, i);
 
-  // Getting the value stored in TDataStd_Integer attribute
-
-  Standard_Integer aValue;
-
-  aValue = I->Get();
-
   // Setting the new value in the attribute 
     
   I->Set( 25 );
@@ -221,11 +215,6 @@ static void Sample()
   
   Handle(TDF_Reference) reference = TDF_Reference::Set(aLabel, referencedlabel);
 
-  // Getting a label to TDF_Reference attribute refers to
-   
-  TDF_Label refLabel = reference->Get();
-
-
   //------------------------- TDataXtd_Point ----------------
   //---------------------------------------------------------
   gp_Pnt Pnt;
@@ -362,7 +351,7 @@ static void Sample()
 
   // Creating a new label in directory
 
-  TDF_Label newlabel = TDataStd_Directory::MakeObjectLabel(newdirectory);
+  TDataStd_Directory::MakeObjectLabel(newdirectory);
 
    
   //------------------------- TDataStd_TreeNode ---------------
diff --git a/src/DPrsStd/DPrsStd_Sample.cxx b/src/DPrsStd/DPrsStd_Sample.cxx
index 387b17a..6c4d956 100644
--- a/src/DPrsStd/DPrsStd_Sample.cxx
+++ b/src/DPrsStd/DPrsStd_Sample.cxx
@@ -177,10 +177,6 @@ static void Sample()
     P->Display(Standard_True); 
     TPrsStd_AISViewer::Update(ShapeLabel);  //Update presenation of the attribute in a viewer's window
 
-    //Getting Standard_GUID of attribute with which TPrsStd_AISPresentation attribute is associeted
-
-    Standard_GUID guid = P->GetDriverGUID();
-
     //Setting a color to the displayd attribute
 
     P->SetColor(Quantity_NOC_RED);
diff --git a/src/Draw/Draw_Window.cxx b/src/Draw/Draw_Window.cxx
index 996bc06..aea14a7 100644
--- a/src/Draw/Draw_Window.cxx
+++ b/src/Draw/Draw_Window.cxx
@@ -752,7 +752,6 @@ Standard_Boolean Draw_Window::Save (const char* theFileName) const
 void ProcessEvent(Draw_Window& win, XEvent& xev)
 {
   Standard_Integer X,Y,button,lenk;
-  char c;
   KeySym keysym;
   XComposeStatus stat;
   char chainekey[10];
@@ -784,12 +783,6 @@ void ProcessEvent(Draw_Window& win, XEvent& xev)
                          10,
                          &keysym,
                          &stat);
-    if (lenk==1)
-      c = chainekey[0];
-    else
-      c = '\0';
-
-    //WKeyPress(c,keysym);
     break;
 
   case MotionNotify :
diff --git a/src/DrawDim/DrawDim_Angle.cxx b/src/DrawDim/DrawDim_Angle.cxx
index 1283eb2..f37c8bc 100644
--- a/src/DrawDim/DrawDim_Angle.cxx
+++ b/src/DrawDim/DrawDim_Angle.cxx
@@ -110,10 +110,7 @@ void DrawDim_Angle::DrawOn(Draw_Display& ) const
   if (!DrawDim::Pln(myPlane2,pln2)) return; 
   IntAna_QuadQuadGeo ip (pln1,pln2,Precision::Confusion(), Precision::Angular());
   if (!ip.IsDone()) return;
-#ifdef DEB
-  gp_Lin linter =
-#endif
-                  ip.Line(1);
+  ip.Line(1);
   
   //Handle(Geom_Surface) curve1 = BRep_Tool::Surface(myPlane1);
   //Handle(Geom_PlaneLine) line1 = Handle(Geom_Line)::DownCast(curve1);    
diff --git a/src/DrawTrSurf/DrawTrSurf.cxx b/src/DrawTrSurf/DrawTrSurf.cxx
index 0c675b2..ec96cc4 100644
--- a/src/DrawTrSurf/DrawTrSurf.cxx
+++ b/src/DrawTrSurf/DrawTrSurf.cxx
@@ -350,8 +350,6 @@ static Standard_Integer draw (Draw_Interpretor& di, Standard_Integer n, const ch
   if (n <= 2) {
 	if (!strcmp(a[0],"dmode")) {
 	  if (n == 2) {
-	    Standard_Integer mod = 0;
-	    if ((*a[n-1] == 'U')||(*a[n-1] == 'u')) mod = 1;
 	    DrawMode = 1;
 	  }
 	  if (DrawMode)
diff --git a/src/DsgPrs/DsgPrs_AnglePresentation.cxx b/src/DsgPrs/DsgPrs_AnglePresentation.cxx
index 63c9864..b8d97e8 100644
--- a/src/DsgPrs/DsgPrs_AnglePresentation.cxx
+++ b/src/DsgPrs/DsgPrs_AnglePresentation.cxx
@@ -277,10 +277,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
   gp_Circ cer(ax,CenterPoint.Distance(OffsetPoint));
   gp_Vec vec1(dir1);
   vec1 *= cer.Radius();
-#ifdef DEB
-  gp_Pnt p1 =
-#endif
-              CenterPoint.Translated(vec1);
+  CenterPoint.Translated(vec1);
   gp_Vec vec2(dir2);
   vec2 *= cer.Radius();
   gp_Pnt p2 = CenterPoint.Translated(vec2);
@@ -542,10 +539,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
   gp_Circ cer(ax,CenterPoint.Distance(OffsetPoint));
   gp_Vec vec1(dir1);
   vec1 *= cer.Radius();
-#ifdef DEB
-  gp_Pnt p1 =
-#endif
-              CenterPoint.Translated(vec1);
+  CenterPoint.Translated(vec1);
   gp_Vec vec2(dir2);
   vec2 *= cer.Radius();
   gp_Pnt p2 = CenterPoint.Translated(vec2);
@@ -666,10 +660,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
   gp_Circ cer(ax,CenterPoint.Distance(OffsetPoint));
   gp_Vec vec1(dir1);
   vec1 *= cer.Radius();
-#ifdef DEB
-  gp_Pnt p1 =
-#endif
-              CenterPoint.Translated(vec1);
+  CenterPoint.Translated(vec1);
   gp_Vec vec2(dir2);
   vec2 *= cer.Radius();
   gp_Pnt p2 = CenterPoint.Translated(vec2);
@@ -794,10 +785,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
   gp_Circ cer(ax,CenterPoint.Distance(OffsetPoint));
   gp_Vec vec1(dir1);
   vec1 *= cer.Radius();
-#ifdef DEB
-  gp_Pnt p1 =
-#endif
-              CenterPoint.Translated(vec1);
+  CenterPoint.Translated(vec1);
   gp_Vec vec2(dir2);
   vec2 *= cer.Radius();
   gp_Pnt p2 = CenterPoint.Translated(vec2);
diff --git a/src/DsgPrs/DsgPrs_DiameterPresentation.cxx b/src/DsgPrs/DsgPrs_DiameterPresentation.cxx
index 68f42bd..73751a2 100644
--- a/src/DsgPrs/DsgPrs_DiameterPresentation.cxx
+++ b/src/DsgPrs/DsgPrs_DiameterPresentation.cxx
@@ -160,7 +160,6 @@ void DsgPrs_DiameterPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
   Standard_Real parEndOfArrow = ElCLib::Parameter(aCircle,AttachmentPoint); //
   gp_Pnt EndOfArrow;
   gp_Pnt DrawPosition = AttachmentPoint;// point of attachment
-  Standard_Boolean otherside = Standard_False;
 
   gp_Pnt Center = aCircle.Location();
   gp_Pnt FirstPoint = ElCLib::Value(uFirst, aCircle);
@@ -172,7 +171,6 @@ void DsgPrs_DiameterPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
     if (DsgPrs_InDomain(fpara,lpara,otherpar)) {
       parEndOfArrow = otherpar; // parameter on circle
       EndOfArrow = ElCLib::Value(parEndOfArrow, aCircle);
-      otherside = Standard_True;
     }
     else {
       gp_Dir dir1(gp_Vec(Center, FirstPoint));
diff --git a/src/ExprIntrp/ExprIntrp_yaccintrf.cxx b/src/ExprIntrp/ExprIntrp_yaccintrf.cxx
index 741f88d..b3f06eb 100644
--- a/src/ExprIntrp/ExprIntrp_yaccintrf.cxx
+++ b/src/ExprIntrp/ExprIntrp_yaccintrf.cxx
@@ -58,9 +58,8 @@ static Standard_Integer ExprIntrp_nbdiff;
 
 extern "C" void ExprIntrp_StartFunction()
 {
-  int nbcar;
   char funcname[100];
-  nbcar = ExprIntrp_GetResult(funcname);
+  ExprIntrp_GetResult(funcname);
   TCollection_AsciiString name(funcname);
   ExprIntrp_Recept.PushName(name);
   ExprIntrp_nbargs = 0;
@@ -68,9 +67,8 @@ extern "C" void ExprIntrp_StartFunction()
 
 extern "C" void ExprIntrp_StartDerivate()
 {
-  int nbcar;
   char funcname[100];
-  nbcar = ExprIntrp_GetResult(funcname);
+  ExprIntrp_GetResult(funcname);
   TCollection_AsciiString name(funcname);
   ExprIntrp_Recept.PushName(name);
 }
@@ -86,9 +84,6 @@ extern "C" void ExprIntrp_Derivation()
 {
   ExprIntrp_Recept.PushValue(1);
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
     ExprIntrp_GetResult(name);
   TCollection_AsciiString thename(name);
   Handle(Expr_NamedExpression) namexp = ExprIntrp_Recept.GetNamed(thename);
@@ -104,8 +99,7 @@ extern "C" void ExprIntrp_Derivation()
 extern "C" void ExprIntrp_DerivationValue()
 {
   char num[30];
-  int nbcar;
-  nbcar = ExprIntrp_GetResult(num);
+  ExprIntrp_GetResult(num);
   Standard_Integer degree = ExprIntrp_Recept.PopValue();
   degree = atoi(num);
   ExprIntrp_Recept.PushValue(degree);
@@ -129,9 +123,6 @@ extern "C" void ExprIntrp_StartDifferential()
 extern "C" void ExprIntrp_DiffDegreeVar()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
     ExprIntrp_GetResult(name);
 #ifndef WNT 
   if (strncasecmp(name,"X",1)) {
@@ -156,9 +147,6 @@ extern "C" void ExprIntrp_DiffVar()
 extern "C" void ExprIntrp_DiffDegree()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
     ExprIntrp_GetResult(name);
   Standard_Integer deg = atoi(name);
   ExprIntrp_Recept.PushValue(deg);
@@ -167,9 +155,6 @@ extern "C" void ExprIntrp_DiffDegree()
 extern "C" void ExprIntrp_VerDiffDegree()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
     ExprIntrp_GetResult(name);
   Standard_Integer deg = atoi(name);
   Standard_Integer thedeg = ExprIntrp_Recept.PopValue();
@@ -461,8 +446,7 @@ extern "C" void ExprIntrp_UnaryMinusOperator()
 extern "C" void ExprIntrp_VariableIdentifier()
 {
   char name[30];
-  int nbcar;
-  nbcar = ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
   TCollection_AsciiString thename(name);
   Handle(Expr_NamedExpression) nameexp = ExprIntrp_Recept.GetNamed(thename);
   if (nameexp.IsNull()) {
@@ -475,8 +459,7 @@ extern "C" void ExprIntrp_VariableIdentifier()
 extern "C" void ExprIntrp_NumValue()
 {
   char num[30];
-  int nbcar;
-  nbcar = ExprIntrp_GetResult(num);
+  ExprIntrp_GetResult(num);
   Standard_Real value = atof(num);
   Handle(Expr_NumericValue) nval = new Expr_NumericValue(value);
   ExprIntrp_Recept.Push(nval);
@@ -484,15 +467,13 @@ extern "C" void ExprIntrp_NumValue()
 
 extern "C" void ExprIntrp_AssignVariable()
 {
-  int nbcar;
-  nbcar = ExprIntrp_GetResult(ExprIntrp_assname);
+  ExprIntrp_GetResult(ExprIntrp_assname);
 }
 
 extern "C" void ExprIntrp_Deassign()
 {
-  int nbcar;
   char name[100];
-  nbcar = ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
   TCollection_AsciiString thename(name);
   Handle(Expr_NamedExpression) nameexp = ExprIntrp_Recept.GetNamed(thename);
   if (nameexp.IsNull()) {
@@ -606,9 +587,6 @@ extern "C" void ExprIntrp_EndOfFuncDef()
 extern "C" void ExprIntrp_ConstantIdentifier()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
     ExprIntrp_GetResult(name);
   TCollection_AsciiString thename(name);
   ExprIntrp_Recept.PushName(thename);
@@ -618,8 +596,7 @@ extern "C" void ExprIntrp_ConstantDefinition()
 {
   TCollection_AsciiString name = ExprIntrp_Recept.PopName();
   char num[30];
-  int nbcar;
-  nbcar = ExprIntrp_GetResult(num);
+  ExprIntrp_GetResult(num);
   Standard_Real val = atof(num);
   Handle(Expr_NamedConstant) theconst = new Expr_NamedConstant(name,val);
   ExprIntrp_Recept.Use(theconst);
diff --git a/src/Extrema/Extrema_ExtElC2d.cxx b/src/Extrema/Extrema_ExtElC2d.cxx
index e70a299..358dc75 100644
--- a/src/Extrema/Extrema_ExtElC2d.cxx
+++ b/src/Extrema/Extrema_ExtElC2d.cxx
@@ -85,13 +85,8 @@ Methode:
   Standard_Real Dy = D.Dot(y2);
   Standard_Real U1, teta[2];
   gp_Pnt2d O1=C1.Location();
-#ifdef DEB
-  gp_Pnt2d O2= C2.Location();
-  gp_Pnt2d P1, P2;
-#else
   C2.Location();
   gp_Pnt2d P1, P2;
-#endif
   
   if (Abs(Dy) <= RealEpsilon()) {
     teta[0] = PI/2.0;
@@ -137,11 +132,7 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Lin2d& C1,
   Standard_Real Dx = D.Dot(x2);
   Standard_Real Dy = D.Dot(y2);
   Standard_Real U1, teta[2], r1 = C2.MajorRadius(), r2 = C2.MinorRadius();
-#ifdef DEB
-  gp_Pnt2d O1=C1.Location(), O2= C2.Location(), P1, P2;
-#else
   gp_Pnt2d O1=C1.Location(), P1, P2;
-#endif
   
   if (Abs(Dy) <= RealEpsilon()) {
     teta[0] = PI/2.0;
diff --git a/src/Extrema/Extrema_ExtElCS.cxx b/src/Extrema/Extrema_ExtElCS.cxx
index 8bbece8..c881f1e 100644
--- a/src/Extrema/Extrema_ExtElCS.cxx
+++ b/src/Extrema/Extrema_ExtElCS.cxx
@@ -65,11 +65,7 @@ void Extrema_ExtElCS::Perform(const gp_Lin& C,
   myIsPar = Standard_False;
 
   gp_Ax3 Pos = S.Position();
-#ifdef DEB
-  gp_Pnt O = Pos.Location();
-#else
   Pos.Location();
-#endif
   Standard_Real radius = S.Radius();
   Extrema_ExtElC Extrem(gp_Lin(Pos.Axis()), C, Precision::Angular());
   if (Extrem.IsParallel()) {
diff --git a/src/GccAna/GccAna_Circ2d3Tan_6.cxx b/src/GccAna/GccAna_Circ2d3Tan_6.cxx
index 761d45e..874a6dd 100644
--- a/src/GccAna/GccAna_Circ2d3Tan_6.cxx
+++ b/src/GccAna/GccAna_Circ2d3Tan_6.cxx
@@ -98,7 +98,6 @@ GccAna_Circ2d3Tan::
 	     Standard_Real dist2 = L2.Distance(Center);
 	     Standard_Real dist3 = Center.Distance(Point3);
 	     Standard_Real Radius=0;
-	     Standard_Integer nbsol2 = 0;
 	     Standard_Integer nbsol3 = 0;
 	     Standard_Boolean ok = Standard_False;
 	     if (Qualified1.IsEnclosed()) {
@@ -122,19 +121,19 @@ GccAna_Circ2d3Tan::
 	     if (Qualified2.IsEnclosed()) {
 	       if ((((origin2.X()-Center.X())*(-dir2.Y()))+
 		    ((origin2.Y()-Center.Y())*(dir2.X())))<=0){
-		 if (Abs(dist2-Radius) < Tol) { nbsol2 = 1; }
+		 if (Abs(dist2-Radius) < Tol) { }
 		 else { ok = Standard_False; }
 	       }
 	     }
 	     else if (Qualified2.IsOutside() && ok) {
 	       if ((((origin2.X()-Center.X())*(-dir2.Y()))+
 		    ((origin2.Y()-Center.Y())*(dir2.X())))>=0){
-		 if (Abs(dist2-Radius) < Tol) { nbsol2 = 1; }
+		 if (Abs(dist2-Radius) < Tol) { }
 		 else { ok = Standard_False; }
 	       }
 	     }
 	     else if (Qualified2.IsUnqualified() && ok) {
-	       if (Abs(dist2-Radius) < Tol) { nbsol2 = 1; }
+	       if (Abs(dist2-Radius) < Tol) { }
 	       else { ok = Standard_False; }
 	     }
 	     if (ok) {
diff --git a/src/GccAna/GccAna_Circ2d3Tan_8.cxx b/src/GccAna/GccAna_Circ2d3Tan_8.cxx
index 237fc75..d912ce4 100644
--- a/src/GccAna/GccAna_Circ2d3Tan_8.cxx
+++ b/src/GccAna/GccAna_Circ2d3Tan_8.cxx
@@ -101,7 +101,6 @@ GccAna_Circ2d3Tan::
            Center.Distance(Point3);
 #endif
 	   Standard_Real Radius=0;
-	   Standard_Integer nbsol1 = 0;
 //	   Standard_Integer nbsol2 = 0;
 	   Standard_Integer nbsol3 = 0;
 	   Standard_Boolean ok = Standard_False;
@@ -109,7 +108,6 @@ GccAna_Circ2d3Tan::
 	     if ((((origin1.X()-Center.X())*(-dir1.Y()))+
 		  ((origin1.Y()-Center.Y())*(dir1.X())))<=0){
 	       ok = Standard_True;
-	       nbsol1 = 1;
 	       Radius = dist1;
 	     }
 	   }
@@ -117,13 +115,11 @@ GccAna_Circ2d3Tan::
 	     if ((((origin1.X()-Center.X())*(-dir1.Y()))+
 		  ((origin1.Y()-Center.Y())*(dir1.X())))>=0){
 	       ok = Standard_True;
-	       nbsol1 = 1;
 	       Radius = dist1;
 	     }
 	   }
 	   else if (Qualified1.IsUnqualified()) {
 	     ok = Standard_True;
-	     nbsol1 = 1;
 	     Radius = dist1;
 	   }
 	   if (ok) {
diff --git a/src/GccAna/GccAna_Circ2dTanOnRad.cxx b/src/GccAna/GccAna_Circ2dTanOnRad.cxx
index 5dc4d55..f45b2ce 100644
--- a/src/GccAna/GccAna_Circ2dTanOnRad.cxx
+++ b/src/GccAna/GccAna_Circ2dTanOnRad.cxx
@@ -84,7 +84,6 @@ GccAna_Circ2dTanOnRad::
      gp_Pnt2d center1(C1.Location());
      Standard_Real x1 = center1.X();
      Standard_Real y1 = center1.Y();
-     Standard_Real xbid = 0.;
      if (Qualified1.IsEnclosed()) {
 //   ============================
        if (Tol < Radius-R1+dist) { WellDone = Standard_True; }
@@ -184,7 +183,6 @@ GccAna_Circ2dTanOnRad::
 	 if ( Abs(D) <= Tol ) {
 	   A = B;
 	   B = D;
-	   xbid = x1;
 	   x0 = y1;
 	   y0 = x1;
 	 }
diff --git a/src/Geom2dConvert/Geom2dConvert.cxx b/src/Geom2dConvert/Geom2dConvert.cxx
index e48dd21..cd472b7 100644
--- a/src/Geom2dConvert/Geom2dConvert.cxx
+++ b/src/Geom2dConvert/Geom2dConvert.cxx
@@ -1107,9 +1107,8 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
        Standard_ConstructionError::Raise("Geom2dConvert Concatenation Error") ;
      Curve2=C.BSplineCurve();
    }
-   Standard_Boolean   rm;
    Curve2->SetPeriodic();      //1 seule courbe C1
-   rm=Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
+   Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
 			 Curve2->Multiplicity(Curve2->LastUKnotIndex())-1,
 			 Precision::Confusion());
    ArrayOfConcatenated->SetValue(0,Curve2);
@@ -1347,9 +1346,8 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
        Curve2=C.BSplineCurve();
      }
    }
-   Standard_Boolean   rm;
    Curve2->SetPeriodic();      //1 seule courbe C1
-   rm=Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
+   Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
 			 Curve2->Multiplicity(Curve2->LastUKnotIndex())-1,
 			 Precision::Confusion());
    ArrayOfConcatenated->SetValue(0,Curve2);
diff --git a/src/GeomConvert/GeomConvert.cxx b/src/GeomConvert/GeomConvert.cxx
index 1c3755e..6423379 100644
--- a/src/GeomConvert/GeomConvert.cxx
+++ b/src/GeomConvert/GeomConvert.cxx
@@ -915,9 +915,8 @@ static void reparameterise_evaluator(
        Standard_ConstructionError::Raise("GeomConvert Concatenation Error") ;
      Curve2=C.BSplineCurve();
    }
-   Standard_Boolean   rm;
    Curve2->SetPeriodic();      
-   rm=Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
+   Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
 			 Curve2->Multiplicity(Curve2->LastUKnotIndex())-1,
 			 Precision::Confusion());
    ArrayOfConcatenated->SetValue(0,Curve2);
@@ -1151,9 +1150,8 @@ void  GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve&           ArrayOfCurv
        Curve2=C.BSplineCurve();
      }
    }
-   Standard_Boolean   rm;
    Curve2->SetPeriodic();                               //only one C1 curve
-   rm=Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
+   Curve2->RemoveKnot(Curve2->LastUKnotIndex(),
 			 Curve2->Multiplicity(Curve2->LastUKnotIndex())-1,
 			 Precision::Confusion());
    ArrayOfConcatenated->SetValue(0,Curve2);
diff --git a/src/GeomFill/GeomFill_EvolvedSection.cxx b/src/GeomFill/GeomFill_EvolvedSection.cxx
index cc23c73..c2e9445 100644
--- a/src/GeomFill/GeomFill_EvolvedSection.cxx
+++ b/src/GeomFill/GeomFill_EvolvedSection.cxx
@@ -31,7 +31,6 @@ static Standard_Boolean Affich = 0;
 GeomFill_EvolvedSection::GeomFill_EvolvedSection(const Handle(Geom_Curve)& C,
 						 const Handle(Law_Function)& L)
 {
-  Standard_Boolean Bof;
   L->Bounds(First, Last);
   mySection = Handle(Geom_Curve)::DownCast(C->Copy());
   myLaw =  L->Trim(First, Last, 1.e-20);
@@ -41,7 +40,7 @@ GeomFill_EvolvedSection::GeomFill_EvolvedSection(const Handle(Geom_Curve)& C,
     myCurve = GeomConvert::CurveToBSplineCurve(C, Convert_QuasiAngular);
     if (myCurve->IsPeriodic()) {
       Standard_Integer M = myCurve->Degree()/2+1;
-      Bof = myCurve->RemoveKnot(1, M, Precision::Confusion());
+      myCurve->RemoveKnot(1, M, Precision::Confusion());
     }
   }
 
diff --git a/src/GeomFill/GeomFill_GuideTrihedronAC.cxx b/src/GeomFill/GeomFill_GuideTrihedronAC.cxx
index 4406ac4..1d6005e 100644
--- a/src/GeomFill/GeomFill_GuideTrihedronAC.cxx
+++ b/src/GeomFill/GeomFill_GuideTrihedronAC.cxx
@@ -236,11 +236,7 @@
 
 
 //derivee seconde du triedre
-#ifdef DEB
-  gp_Vec DTDN = DTo.Crossed(DNormal);
-#else
   DTo.Crossed(DNormal);
-#endif
   Standard_Real TN2 = TN.SquareMagnitude();
 
   D2Normal.SetLinearForm(-2*ndn, dn, 
diff --git a/src/GeomFill/GeomFill_LocationGuide.cxx b/src/GeomFill/GeomFill_LocationGuide.cxx
index 8ee2cad..84814f3 100644
--- a/src/GeomFill/GeomFill_LocationGuide.cxx
+++ b/src/GeomFill/GeomFill_LocationGuide.cxx
@@ -67,11 +67,10 @@ static void TraceRevol(const Standard_Real t,
 {
   gp_Vec T, N, B;
   gp_Pnt P;
-  Standard_Boolean Ok;
   gp_Ax3 Rep(gp::Origin(), gp::DZ(), gp::DX());
 
   Curve->D0(t, P);
-  Ok = Law->D0(t, T, N, B);
+  Law->D0(t, T, N, B);
 
   gp_Mat M(N.XYZ(), B.XYZ(), T.XYZ());
   M *= Trans;
diff --git a/src/GeomFill/GeomFill_Pipe.cxx b/src/GeomFill/GeomFill_Pipe.cxx
index f4040ab..9cf899d 100644
--- a/src/GeomFill/GeomFill_Pipe.cxx
+++ b/src/GeomFill/GeomFill_Pipe.cxx
@@ -602,13 +602,11 @@ void GeomFill_Pipe::Init(const Handle(Geom2d_Curve)& Path,
     new Adaptor3d_HCurveOnSurface(Adaptor3d_CurveOnSurface(
 		       new Geom2dAdaptor_HCurve(Path), 
 		       new GeomAdaptor_HSurface(Support)));
-  Standard_Real param =  Path->FirstParameter();
  
   myLoc = new (GeomFill_CurveAndTrihedron) (TLaw);
   myLoc->SetCurve(myAdpPath);
   GeomFill_SectionPlacement Place(myLoc, FirstSect);
   Place.Perform(myAdpPath, Precision::Confusion());
-  param =  Place.ParameterOnPath();
   Sect = Place.Section(Standard_False);
   
 #ifdef DRAW
@@ -638,7 +636,6 @@ void GeomFill_Pipe::Init(const Handle(Geom_Curve)& Path,
   Handle(Geom_Curve) Sect;
   myAdpPath = new (GeomAdaptor_HCurve) 
     (Handle(Geom_Curve)::DownCast(Path->Copy()));
-  Standard_Real param =  Path->FirstParameter();
   gp_Vec V;
   V.SetXYZ(Direction.XYZ());
   Handle (GeomFill_ConstantBiNormal) TLaw = 
@@ -648,7 +645,6 @@ void GeomFill_Pipe::Init(const Handle(Geom_Curve)& Path,
   myLoc->SetCurve(myAdpPath);
   GeomFill_SectionPlacement Place(myLoc, FirstSect);
   Place.Perform(Precision::Confusion());
-  param =  Place.ParameterOnPath();
   Sect = Place.Section(Standard_False);
 
 #ifdef DRAW
diff --git a/src/GeomFill/GeomFill_TgtOnCoons.cxx b/src/GeomFill/GeomFill_TgtOnCoons.cxx
index 7258528..4f7d43a 100644
--- a/src/GeomFill/GeomFill_TgtOnCoons.cxx
+++ b/src/GeomFill/GeomFill_TgtOnCoons.cxx
@@ -109,11 +109,7 @@ gp_Vec GeomFill_TgtOnCoons::D1(const Standard_Real W) const
 
   Standard_Real scal = tgsc.Dot(n);
   gp_Vec scaln = n.Multiplied(-scal);
-#ifdef DEB
-  gp_Vec tpur = tgsc.Added(scaln);
-#else
   tgsc.Added(scaln);
-#endif
 
   gp_Vec scaldn = dn.Multiplied(-scal);
 
diff --git a/src/GeomFill/GeomFill_UniformSection.cxx b/src/GeomFill/GeomFill_UniformSection.cxx
index 32ee0b0..4b9e448 100644
--- a/src/GeomFill/GeomFill_UniformSection.cxx
+++ b/src/GeomFill/GeomFill_UniformSection.cxx
@@ -38,9 +38,8 @@ GeomFill_UniformSection::GeomFill_UniformSection(const Handle(Geom_Curve)& C,
  if (myCurve.IsNull()) {
    myCurve = GeomConvert::CurveToBSplineCurve(C, Convert_QuasiAngular);
    if (myCurve->IsPeriodic()) {
-     Standard_Boolean B;
      Standard_Integer M = myCurve->Degree()/2+1;
-     B = myCurve->RemoveKnot(1, M, Precision::Confusion());
+     myCurve->RemoveKnot(1, M, Precision::Confusion());
    }
  }
 
diff --git a/src/GeometryTest/GeometryTest_APICommands.cxx b/src/GeometryTest/GeometryTest_APICommands.cxx
index b74a420..e07fe07 100644
--- a/src/GeometryTest/GeometryTest_APICommands.cxx
+++ b/src/GeometryTest/GeometryTest_APICommands.cxx
@@ -472,14 +472,9 @@ void GeometryTest::APICommands(Draw_Interpretor& theCommands)
   if (done) return;
 
   done = Standard_True;
-  const char* g;
-
-  g = "GEOMETRY curves and surfaces analysis";
 
   theCommands.Add("proj", "proj curve/surf x y z",__FILE__, proj);
 
-  g = "GEOMETRY approximations";
-
   theCommands.Add("appro", "appro result nbpoint [curve]",__FILE__, appro);
   theCommands.Add("surfapp","surfapp result nbupoint nbvpoint x y z ....",
 		  __FILE__,
@@ -488,8 +483,6 @@ void GeometryTest::APICommands(Draw_Interpretor& theCommands)
        "grilapp result nbupoint nbvpoint X0 dX Y0 dY z11 z12 .. z1nu ....  ",
         __FILE__,grilapp);
 
-  g = "GEOMETRY curves and surfaces analysis";
-
   theCommands.Add("extrema", "extrema curve/surface curve/surface",__FILE__,extrema);
   theCommands.Add("totalextcc", "totalextcc curve curve",__FILE__,totalextcc);
 }
diff --git a/src/GeometryTest/GeometryTest_CurveCommands.cxx b/src/GeometryTest/GeometryTest_CurveCommands.cxx
index e400f75..612cb67 100644
--- a/src/GeometryTest/GeometryTest_CurveCommands.cxx
+++ b/src/GeometryTest/GeometryTest_CurveCommands.cxx
@@ -406,7 +406,7 @@ static Standard_Integer project (Draw_Interpretor& di,
   Standard_Real U1,U2,V1,V2;
   GS->Bounds(U1,U2,V1,V2);
 
-  Standard_Boolean Verif = Standard_False, Extent = Standard_False;
+  Standard_Boolean Verif = Standard_False;
   Standard_Integer NbPoints=0;
 
   Standard_Integer index = 4;
@@ -418,7 +418,6 @@ static Standard_Integer project (Draw_Interpretor& di,
       Standard_Real dU = p * (U2 - U1) / 100.;
       Standard_Real dV = p * (V2 - V1) / 100.;
       U1 -= dU; U2 += dU; V1 -= dV; V2 += dV;
-      Extent = Standard_True;
     }
     else if ( a[index][1] == 'v') {
       Verif = Standard_True;
@@ -750,7 +749,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
 
 static Standard_Integer movelaw (Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
-  Standard_Integer dimension,
+  Standard_Integer 
   ii,
   condition=0,
   error_status ;
@@ -762,7 +761,6 @@ static Standard_Integer movelaw (Draw_Interpretor& di, Standard_Integer n, const
   u = atof(a[2]);
   x = atof(a[3]);
   tolerance = 1.0e-5 ;
-  dimension = 2 ;
   if (n < 5) {
       return 1 ;
   }
@@ -872,7 +870,6 @@ static Standard_Integer crvpoints (Draw_Interpretor& di, Standard_Integer /*n*/,
   Draw::Set(a[1], aDrCrv);
 
   Standard_Real dmax = 0., ufmax = 0., ulmax = 0.;
-  Standard_Integer imax = 0;
 
   for(i = 1; i < nbp; ++i) {
     Standard_Real uf = aKnots(i);
@@ -892,7 +889,6 @@ static Standard_Integer crvpoints (Draw_Interpretor& di, Standard_Integer /*n*/,
 	dmax = d;
 	ufmax = uf;
 	ulmax = ul;
-	imax = i;
       }
     }
   }
diff --git a/src/GeometryTest/GeometryTest_FairCurveCommands.cxx b/src/GeometryTest/GeometryTest_FairCurveCommands.cxx
index 64c89ba..fb9df3a 100644
--- a/src/GeometryTest/GeometryTest_FairCurveCommands.cxx
+++ b/src/GeometryTest/GeometryTest_FairCurveCommands.cxx
@@ -46,7 +46,6 @@ BattenCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
   const char *cheigth = argv[5];
   const char *BattenName = argv[6];
 
-  Standard_Boolean Ok;
   FairCurve_AnalysisCode Iana;
   Standard_Real a1 = atof(cangle1),
                 a2 = atof(cangle2),
@@ -61,7 +60,7 @@ BattenCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
   Bat->SetAngle1(a1*PI/180);
   Bat->SetAngle2(a2*PI/180);
   
-  Ok = Bat->Compute(Iana);
+  Bat->Compute(Iana);
   
   Handle(DrawFairCurve_Batten) aBatten = new DrawFairCurve_Batten(Bat);
 
@@ -90,7 +89,6 @@ MVCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
   const char *cheigth = argv[5];
   const char *MVCName = argv[6];
 
-  Standard_Boolean Ok;
   FairCurve_AnalysisCode Iana;
   Standard_Real a1 = atof(cangle1),
                 a2 = atof(cangle2),
@@ -105,7 +103,7 @@ MVCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
   MVC->SetAngle1(a1*PI/180);
   MVC->SetAngle2(a2*PI/180);
   
-  Ok = MVC->Compute(Iana);
+  MVC->Compute(Iana);
   
   Handle(DrawFairCurve_MinimalVariation) aMVC = new DrawFairCurve_MinimalVariation(MVC);
 
diff --git a/src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx b/src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
index 95b356c..d652d43 100644
--- a/src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
+++ b/src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
@@ -1187,20 +1187,6 @@ static Standard_Integer rempole (Draw_Interpretor& di, Standard_Integer n, const
     BSpline = Standard_True;
   }
   
-  Standard_Integer Index;
-  if ( !strcasecmp(a[0],"remrowpole")) {
-    if (BSpline)
-      Index = GBs->UDegree();
-    else 
-      Index = GBz->UDegree();
-  }  
-  else if ( !strcasecmp(a[0],"remcolpole")) {
-    if (BSpline) 
-      Index = GBs->VDegree();
-    else
-      Index = GBz->VDegree();
-  }
-  
   if ( !strcasecmp(a[0],"remrowpole")) {
     if ( BSpline) {
       di << " Error : Cannot remove a polerow on a BSplineSurface " << "\n";
diff --git a/src/Graphic2d/Graphic2d_Image.cxx b/src/Graphic2d/Graphic2d_Image.cxx
index 591e77c..a1fb82a 100644
--- a/src/Graphic2d/Graphic2d_Image.cxx
+++ b/src/Graphic2d/Graphic2d_Image.cxx
@@ -201,8 +201,8 @@ void Graphic2d_Image::FillAndDraw (const Handle(Graphic2d_Drawer)& aDrawer) cons
 
 Standard_ShortReal a,b;
 
-Standard_Integer LowerX, LowerY;
-Standard_Integer UpperX, UpperY;
+Standard_Integer LowerY;
+Standard_Integer UpperY;
 Standard_Integer Width, Height;
 Aspect_RGBPixel *pixels;
 
@@ -217,10 +217,7 @@ Standard_Real R, G, B;
         Width   = myImage->Width ();
         Height  = myImage->Height ();
 
-        LowerX  = myImage->LowerX ();
         LowerY  = myImage->LowerY ();
-
-        UpperX  = myImage->UpperX ();
         UpperY  = myImage->UpperY ();
 
         if (Height*Width <= Graphic2d_Image::SmallSize ()) {
@@ -275,9 +272,6 @@ Standard_Real R, G, B;
 void Graphic2d_Image::ComputeCenter(const Handle(Graphic2d_Drawer)& aDrawer,
                                     Standard_ShortReal& cx,
                                     Standard_ShortReal& cy) const {
-     Standard_Integer Width, Height;
-     Width = myImage->Width ();
-     Height = myImage->Height ();
      Standard_ShortReal dx = aDrawer->Convert(myImage->Width());
      Standard_ShortReal dy = aDrawer->Convert(myImage->Height());
 
diff --git a/src/Graphic3d/Graphic3d_GraphicDevice.cxx b/src/Graphic3d/Graphic3d_GraphicDevice.cxx
index fe5bf00..2b6c504 100644
--- a/src/Graphic3d/Graphic3d_GraphicDevice.cxx
+++ b/src/Graphic3d/Graphic3d_GraphicDevice.cxx
@@ -200,13 +200,11 @@ void Graphic3d_GraphicDevice::SetGraphicDriver ()
 
 Standard_Boolean Graphic3d_GraphicDevice::ShrIsDefined (Standard_CString& aShr) const {
 
-  char *glso, *glul, *pkno;
+  char *glso;
   const char *glshr, *casroot;
 
   casroot = getenv("CASROOT");
   glso = getenv("CSF_GraphicShr");
-  glul = getenv("GRAPHICHOME");
-  pkno = getenv("CSF_Graphic3dLib");
 
   if (! BAD(glso)) {
     glshr = getenv("CSF_GraphicShr");
diff --git a/src/HLRBRep/HLRBRep_Hider.cxx b/src/HLRBRep/HLRBRep_Hider.cxx
index 3ab2e04..384f2ba 100644
--- a/src/HLRBRep/HLRBRep_Hider.cxx
+++ b/src/HLRBRep/HLRBRep_Hider.cxx
@@ -325,7 +325,6 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
 
 	Standard_Boolean foundHidden = Standard_False;
 	
-	Standard_Integer aStartLevel;
 	if (!ILHidden.IsEmpty()) {    
 
 	  HLRBRep_EdgeIList::ProcessComplex // complex transition on ILHidden
@@ -335,7 +334,6 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
 	    level = myDS->HidingStartLevel(E,ed,ILHidden);  // **************
 	  	  HLRAlgo_ListIteratorOfInterferenceList It(ILHidden); 
 	  
-	  aStartLevel = level;
 	  while(It.More()) {           // suppress multi-inside Intersections
 	                               // ***********************************
 	  
diff --git a/src/HLRBRep/HLRBRep_PolyAlgo.cxx b/src/HLRBRep/HLRBRep_PolyAlgo.cxx
index 58f22e0..28913d9 100644
--- a/src/HLRBRep/HLRBRep_PolyAlgo.cxx
+++ b/src/HLRBRep/HLRBRep_PolyAlgo.cxx
@@ -3527,7 +3527,6 @@ UpdateEdgesBiPoints (HLRAlgo_ListOfBPoint& List,
 		     const Standard_Boolean closed)
 {
   Standard_Integer itri1,itri2,tbid;
-  Standard_Boolean OK;
   HLRAlgo_ListIteratorOfListOfBPoint it;
   
   for (it.Initialize(List); it.More(); it.Next()) {      
@@ -3545,8 +3544,8 @@ UpdateEdgesBiPoints (HLRAlgo_ListOfBPoint& List,
 	pid1->PINod().ChangeValue(F1Pt1Index)->Indices();
       Standard_Address Nod21Indices = 
 	pid2->PINod().ChangeValue(F2Pt1Index)->Indices();
-      OK = Triangles(F1Pt1Index,F1Pt2Index,Nod11Indices,PISeg1,itri1,tbid);
-      OK = Triangles(F2Pt1Index,F2Pt2Index,Nod21Indices,PISeg2,itri2,tbid);
+      Triangles(F1Pt1Index,F1Pt2Index,Nod11Indices,PISeg1,itri1,tbid);
+      Triangles(F2Pt1Index,F2Pt2Index,Nod21Indices,PISeg2,itri2,tbid);
 
       if (itri1 != 0 && itri2 != 0) {
 	if (F1Index != F2Index || itri1 != itri2) {
diff --git a/src/HLRTest/HLRTest.cxx b/src/HLRTest/HLRTest.cxx
index 384bfa0..0213e14 100644
--- a/src/HLRTest/HLRTest.cxx
+++ b/src/HLRTest/HLRTest.cxx
@@ -77,9 +77,7 @@ Handle(HLRTopoBRep_OutLiner) HLRTest::GetOutLiner (Standard_CString& Name)
 static Standard_Integer
 hprj (Draw_Interpretor& , Standard_Integer n, const char** a)
 {
-  Standard_Integer id = 1;
   if (n < 2) return 1;
-  if (n > 2) id = atoi(a[2]);
   //
   gp_Ax2 anAx2 = gp::XOY();
   if (n == 11)
diff --git a/src/IFGraph/IFGraph_Articulations.cxx b/src/IFGraph/IFGraph_Articulations.cxx
index 4cf4fd6..d791728 100644
--- a/src/IFGraph/IFGraph_Articulations.cxx
+++ b/src/IFGraph/IFGraph_Articulations.cxx
@@ -32,7 +32,7 @@
   for (Standard_Integer i = 1; i <= nb; i ++) {
     Standard_Integer visited;
     thenow = 0;
-    if (thegraph.IsPresent(i)) visited = Visit(i);
+    if (thegraph.IsPresent(i)) Visit(i);
   }
 //  Resultat dans thelist
   Reset();
diff --git a/src/IFSelect/IFSelect_BasicDumper.cxx b/src/IFSelect/IFSelect_BasicDumper.cxx
index 4bb4d17..9690769 100644
--- a/src/IFSelect/IFSelect_BasicDumper.cxx
+++ b/src/IFSelect/IFSelect_BasicDumper.cxx
@@ -131,11 +131,10 @@
     return Standard_True;
   }
   if (type.IsEqual("IFSelect_SelectTextType")) {
-    Standard_Boolean exact;
     const TCollection_AsciiString exname = file.ParamValue(1);
     if (exname.Length() < FIRSTCHAR) return Standard_False;
-    if      (exname.Value(FIRSTCHAR) == 'e') exact = Standard_True;
-    else if (exname.Value(FIRSTCHAR) == 'c') exact = Standard_False;
+    if      (exname.Value(FIRSTCHAR) == 'e') {}
+    else if (exname.Value(FIRSTCHAR) == 'c') {}
     else  return Standard_False;
 //    item = new IFSelect_SelectTextType (file.TextValue(2).ToCString(),exact);
 //    return Standard_True;
diff --git a/src/IFSelect/IFSelect_ListEditor.cxx b/src/IFSelect/IFSelect_ListEditor.cxx
index bd5713f..e30a89f 100644
--- a/src/IFSelect/IFSelect_ListEditor.cxx
+++ b/src/IFSelect/IFSelect_ListEditor.cxx
@@ -60,11 +60,9 @@ Standard_Boolean  IFSelect_ListEditor::LoadEdited
   if (list.IsNull()) return Standard_False;
   Standard_Integer i, nb = list->Length();
   if (nb > themax) return Standard_False;
-  Interface_ParamType pty = Interface_ParamText;
 
 //   check values
   if (!thedef.IsNull()) {
-    pty = thedef->Type();
     for (i = 1; i <= nb; i ++) {
       Handle(TCollection_HAsciiString) newval = list->Value(i);
       if (!CheckValue (newval,themodl,thedef)) return Standard_False;
diff --git a/src/IFSelect/IFSelect_WorkSession.cxx b/src/IFSelect/IFSelect_WorkSession.cxx
index 57e225b..27d8e1f 100644
--- a/src/IFSelect/IFSelect_WorkSession.cxx
+++ b/src/IFSelect/IFSelect_WorkSession.cxx
@@ -3440,8 +3440,6 @@ void IFSelect_WorkSession::DumpModel
     if (level == 5 || level ==  8) mode = IFSelect_CountByItem;
     if (level == 6 || level ==  9) mode = IFSelect_ListByItem;
     if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
-    Standard_Boolean failsonly = Standard_False;
-    if (level < 8 && level != 4) failsonly = Standard_True;
     PrintCheckList (ModelCheckList(),Standard_False, mode);
   } else {
     if (level == 3) S << "        ********  Check Model (Fails)  ********"<<endl;
diff --git a/src/IGESConvGeom/IGESConvGeom.cxx b/src/IGESConvGeom/IGESConvGeom.cxx
index 832944e..4512275 100644
--- a/src/IGESConvGeom/IGESConvGeom.cxx
+++ b/src/IGESConvGeom/IGESConvGeom.cxx
@@ -561,10 +561,9 @@ Standard_Integer IGESConvGeom::IncreaseSurfaceContinuity  (const Handle(Geom_BSp
 {
   if (continuity < 1) return continuity;
   Standard_Boolean isC1 = Standard_True, isC2 = Standard_True;
-  Standard_Integer i,j;
+  Standard_Integer i;
 
   i = res->LastUKnotIndex();   //knots.Upper();
-  j = res->FirstUKnotIndex();  //knots.Lower();
   Standard_Integer DegreeU = res->UDegree();
   
   Standard_Boolean isModified;
diff --git a/src/Image/Image_BilinearPixelInterpolation.cxx b/src/Image/Image_BilinearPixelInterpolation.cxx
index d0cb9e3..ca77b62 100644
--- a/src/Image/Image_BilinearPixelInterpolation.cxx
+++ b/src/Image/Image_BilinearPixelInterpolation.cxx
@@ -74,7 +74,6 @@ static Standard_Real DoInterpolation(	const TColStd_Array1OfReal&    NXF,
   }
   else {
   	Standard_Integer i;
-  	Standard_Boolean BResult;
   	TColStd_Array1OfReal V(1,4), R(1,4) ;
   	TColStd_Array2OfReal M( 1, 4, 1, 4 ) ;
   	TColStd_Array2OfReal MINV( 1, 4, 1, 4 ) ;
@@ -85,7 +84,7 @@ static Standard_Real DoInterpolation(	const TColStd_Array1OfReal&    NXF,
 		V(i)   = NZF(i) ;
   	}
 
-  	BResult = Aspect::Inverse (M, MINV);
+  	Aspect::Inverse (M, MINV);
 
   	// R = M * V ;
 	R (1)	= M (1, 1) * V (1) + M (1, 2) * V (2)
diff --git a/src/IntAna/IntAna_Quadric.cxx b/src/IntAna/IntAna_Quadric.cxx
index bcb7ec4..27f15c0 100644
--- a/src/IntAna/IntAna_Quadric.cxx
+++ b/src/IntAna/IntAna_Quadric.cxx
@@ -120,15 +120,9 @@ void IntAna_Quadric::NewCoefficients( Standard_Real& _CXX,Standard_Real& _CYY,St
   Standard_Real Cxx,Cyy,Czz,Cxy,Cxz,Cyz,Cx,Cy,Cz,Ccte;            
 
 
-#ifdef DEB  
-  gp_Dir DirX = Axis.XDirection();
-  gp_Dir DirY = Axis.YDirection();
-  gp_Dir DirZ = Axis.Direction();
-#else
   Axis.XDirection();
   Axis.YDirection();
   Axis.Direction();
-#endif
   
   gp_Trsf Trans;
   
diff --git a/src/IntPatch/IntPatch_ALineToWLine.cxx b/src/IntPatch/IntPatch_ALineToWLine.cxx
index e8cd7d9..41543bd 100644
--- a/src/IntPatch/IntPatch_ALineToWLine.cxx
+++ b/src/IntPatch/IntPatch_ALineToWLine.cxx
@@ -621,7 +621,7 @@ static
   do { 
     Standard_Boolean RemoveVtxo, RemoveVtx;
     Standard_Integer vo, voo;
-    Standard_Real ponl, ponlo, ponloo, aDist13, aDist23;
+    Standard_Real ponl, ponlo, aDist13, aDist23;
     //
     APointHasBeenRemoved = Standard_False;
     RemoveVtxo = Standard_False;
@@ -647,7 +647,6 @@ static
 		  if(voo!=v && voo!=vo) {
 		    if(newparamvertex(voo)>=0.) { 
 		      const IntPatch_Point& Vtxoo = aline->Vertex(voo);
-		      ponloo = Vtxoo.ParameterOnLine();
 		      const gp_Pnt& aPoo=Vtxoo.Value();
 		      //
 		      aDist13=aP.Distance(aPoo);
@@ -920,10 +919,6 @@ void RecadreMemePeriode(const IntSurf_Quadric aQuad1,
 			const Standard_Real anu1,
 			const Standard_Real anu2) 
 { 
-  GeomAbs_SurfaceType aType1, aType2;
-  //
-  aType1=aQuad1.TypeQuadric();
-  aType2=aQuad2.TypeQuadric();
   //
   while(anu1-u1 > 5.0) {
     u1+=PI+PI;
diff --git a/src/IntPatch/IntPatch_RLine.cxx b/src/IntPatch/IntPatch_RLine.cxx
index 5014ff7..a720c2e 100644
--- a/src/IntPatch/IntPatch_RLine.cxx
+++ b/src/IntPatch/IntPatch_RLine.cxx
@@ -93,9 +93,6 @@ void IntPatch_RLine::ComputeVertexParameters(const Standard_Real )
 {
   Standard_Integer i,j,nbvtx;//k;
   
-  Standard_Real ParamMinOnLine,ParamMaxOnLine;
-  if(fipt) { ParamMinOnLine = Vertex(indf).ParameterOnLine(); } else { ParamMinOnLine = -100000.0; } 
-  if(lapt) { ParamMaxOnLine = Vertex(indl).ParameterOnLine(); } else { ParamMaxOnLine =  100000.0; } 
   Standard_Boolean APointDeleted = Standard_False;
   //----------------------------------------------------------
   //--     F i l t r e   s u r   r e s t r i c t i o n s   --
diff --git a/src/IntPatch/IntPatch_RstInt.cxx b/src/IntPatch/IntPatch_RstInt.cxx
index 067ebf1..aae2e18 100644
--- a/src/IntPatch/IntPatch_RstInt.cxx
+++ b/src/IntPatch/IntPatch_RstInt.cxx
@@ -684,11 +684,10 @@ void IntPatch_RstInt::PutVertexOnLine (Handle(IntPatch_Line)& L,
 	      (!Domain->Has3d() && Standard_Integer(nptCh)+1 < Nbptlin);
 	    if (!isNptLow && !IsSegment2dSmall(Brise,UMinAr,UMaxAr,tolU,tolV)) {
 	      // treat both ends
-	      Standard_Real UMinChP,UMaxChP,UMinArP,UMaxArP;
+	      Standard_Real UMinChP,UMinArP,UMaxArP;
 	      UMinChP = IntegerPart(UMinCh); UMinArP = IntegerPart(UMinAr);
-	      UMaxChP = IntegerPart(UMaxCh); UMaxArP = IntegerPart(UMaxAr);
-	      Standard_Integer irangCh1,irangCh2,irangAr1,irangAr2;
-	      irangCh1 = Standard_Integer(UMinChP)+1; irangCh2 = Standard_Integer(UMaxChP)+1;
+	                                     UMaxArP = IntegerPart(UMaxAr);
+	      Standard_Integer irangAr1,irangAr2;
 	      irangAr1 = Standard_Integer(UMinArP)+1; irangAr2 = Standard_Integer(UMaxArP)+1;
 	      UMinChP = UMinCh - UMinChP; UMinArP = UMinAr - UMinArP;
 	      //UMaxChP = UMaxCh - UMaxChP; UMaxArP = UMaxAr - UMaxArP;
diff --git a/src/IntPatch/IntPatch_WLine.cxx b/src/IntPatch/IntPatch_WLine.cxx
index 3adc591..36c684c 100644
--- a/src/IntPatch/IntPatch_WLine.cxx
+++ b/src/IntPatch/IntPatch_WLine.cxx
@@ -236,9 +236,6 @@ void IntPatch_WLine::ComputeVertexParameters(const Standard_Real RTol) {
   Standard_Integer indicevertexonline;
   Standard_Real    indicevertex;
 
-  Standard_Real ParamMinOnLine,ParamMaxOnLine;
-  if(fipt) { ParamMinOnLine = Vertex(indf).ParameterOnLine(); } else { ParamMinOnLine = -100000.0; } 
-  if(lapt) { ParamMaxOnLine = Vertex(indl).ParameterOnLine(); } else { ParamMaxOnLine =  100000.0; } 
   Standard_Boolean APointDeleted = Standard_False;
   //----------------------------------------------------------
   //--     F i l t r e   s u r   r e s t r i c t i o n s   --
diff --git a/src/IntTools/IntTools.cxx b/src/IntTools/IntTools.cxx
index 08d5513..091af05 100644
--- a/src/IntTools/IntTools.cxx
+++ b/src/IntTools/IntTools.cxx
@@ -221,14 +221,13 @@
 				 const Standard_Real myEpsNull)
 {
   Standard_Integer aType, j, aNbRoots;
-  Standard_Real t, t1, t2, f1, f2, absf1, absf2;
+  Standard_Real t, t1, t2, f1, f2, absf2;
 
   aNbRoots=mySequenceOfRoots.Length();
 
   for (j=1; j<=aNbRoots; j++) {
     IntTools_Root& aR=mySequenceOfRoots.ChangeValue(j);
     
-    t=aR.Root();
     aR.Interval (t1, t2, f1, f2);
 
     aType=aR.Type();
@@ -250,7 +249,6 @@
       break;
       
     case 2: // Smart;
-      absf1=fabs(f1);
       absf2=fabs(f2);
       if (absf2 < myEpsNull) {
 	aR.SetStateAfter (TopAbs_ON);
diff --git a/src/IntTools/IntTools_Context.cxx b/src/IntTools/IntTools_Context.cxx
index 710c60a..7033f3a 100644
--- a/src/IntTools/IntTools_Context.cxx
+++ b/src/IntTools/IntTools_Context.cxx
@@ -432,8 +432,7 @@
 							 const Standard_Real aTol) 
 {
   Standard_Boolean bFlag;
-  Standard_Real Umin, myEpsT, U, V;
-  myEpsT=1.e-12;
+  Standard_Real Umin, U, V;
 
   GeomAPI_ProjectPointOnSurf& aProjector=ProjPS(aF);
   aProjector.Perform(aP);
@@ -482,14 +481,12 @@
 							  const Standard_Real aTol) 
 {
   Standard_Boolean bFlag;
-  Standard_Real aTInterm, aFirst, aLast;
+  Standard_Real aTInterm;
   gp_Pnt aPInterm;
 
   aTInterm=IntTools_Tools::IntermediatePoint(aT1, aT2);
 
   Handle(Geom_Curve) aC3D=aC.Curve();
-  aFirst=aC3D->FirstParameter();
-  aLast =aC3D->LastParameter();
   // point 3D
   aC3D->D0(aTInterm, aPInterm);
   //
diff --git a/src/IntTools/IntTools_EdgeEdge.cxx b/src/IntTools/IntTools_EdgeEdge.cxx
index f86dafb..d3dbf60 100644
--- a/src/IntTools/IntTools_EdgeEdge.cxx
+++ b/src/IntTools/IntTools_EdgeEdge.cxx
@@ -455,7 +455,7 @@
 					       Standard_Real& tRoot)
 {
   Standard_Real tm, t1, t2;
-  Standard_Integer anIsProj1, anIsProj2, anIsProjm;
+  Standard_Integer anIsProj1, anIsProjm;
   //
   // Root can be on the ends of [tt1, tt2]
   Standard_Integer anOldErrorStatus=myErrorStatus;
@@ -480,7 +480,6 @@
   t1=tt1;  
   t2=tt2;
   anIsProj1=ff1;
-  anIsProj2=ff2;
   
   while (1) {
     if (fabs(t1-t2) < myEpsT) {
@@ -492,7 +491,6 @@
     
     if (anIsProjm != anIsProj1) {
       t2=tm;
-      anIsProj2=anIsProjm;
     }
     else {
       t1=tm;
@@ -787,7 +785,7 @@
   //
   //
   Standard_Boolean aVFlag1, aVFlag2, aGeomFlag1, aGeomFlag2;
-  Standard_Real Df2m2, Dm2l2, Df2l2, df2m2, dm2l2, df2l2, df1m1, dm1l1, df1l1;
+  Standard_Real Df2m2, Dm2l2, Df2l2, df2m2, dm2l2, df2l2, df1l1;
   Standard_Real tV1, tV2;
   //
   // parametric differences for C2
@@ -823,8 +821,6 @@
   }
   //
   // geometric distances for C1
-  df1m1=aPf1.Distance(aPm1);
-  dm1l1=aPm1.Distance(aPl1);
   df1l1=aPf1.Distance(aPl1);
   //
   // if geometric distances between boundaries is less than myCriteria
@@ -950,7 +946,7 @@
   void IntTools_EdgeEdge::IsIntersection (const Standard_Real ta, 
 					  const Standard_Real tb) 
 {
-  Standard_Integer i, aNb, pri;
+  Standard_Integer i, aNb;
   Standard_Real t, f;
   GeomAbs_CurveType aCT1, aCT2;
   IntTools_CArray1OfReal anArgs, aFunc;
@@ -1006,7 +1002,7 @@
   }
   //
   // Prepare values of arguments for the interval [ta, tb]
-  pri=IntTools::PrepareArgs (myCFrom, tb, ta, myDiscret, myDeflection, anArgs);
+  IntTools::PrepareArgs (myCFrom, tb, ta, myDiscret, myDeflection, anArgs);
   aNb=anArgs.Length();
 
   aFunc.Resize(aNb);
@@ -1030,7 +1026,7 @@
 					     const IntTools_CArray1OfReal& f)  
 {
   Standard_Integer i, n, k;
-  Standard_Real fr, tr, anEpsNull;
+  Standard_Real tr, anEpsNull;
   IntTools_CArray1OfReal fd;
   TColStd_SequenceOfReal aTSeq, aFSeq;
   
@@ -1077,7 +1073,6 @@
     //aa
     if (fd1*fd2 < 0.) {
       tr=FindSimpleRoot(2, t1, t2, fd1);
-      fr=DistanceFunction(tr);
       myPar1=tr;
       myParallel=Standard_False;
       break;
@@ -1085,7 +1080,6 @@
     
     if (!bF1 && bF2) {
       tr=t2;
-      fr=fd2;
       myPar1=tr;
       myParallel=Standard_False;
       break;
@@ -1093,7 +1087,6 @@
     
     if (bF1 && !bF2) {
       tr=t1;
-      fr=fd1;
       myPar1=tr;
       myParallel=Standard_False;
       break;
@@ -1341,7 +1334,7 @@
   Standard_Real aTFR1, aTLR1, aTFR2, aTLR2;
   Standard_Real aTL1, aTL2, aTC1, aTC2;
   Standard_Real aRC, aDLC, aD2, aC2, aTLx, aTCx;
-  GeomAbs_CurveType aTFrom, aTTo;
+  GeomAbs_CurveType aTFrom;
   gp_Circ aCirc;
   gp_Lin  aLine;
   gp_Pnt aPC, aPLx, aPCx;
@@ -1351,7 +1344,6 @@
   (aCP.Ranges2())(1).Range(aTFR2, aTLR2);
   //
   aTFrom=myCFrom.GetType();
-  aTTo  =myCTo.GetType();
   //
   aTL1=aTFR1;
   aTL2=aTLR1;
@@ -1527,13 +1519,12 @@
      (myCFrom.GetType() == GeomAbs_Circle && myCTo.GetType() == GeomAbs_Line))
   {
     Standard_Real aRadius;
-    GeomAbs_CurveType aTFrom, aTTo;
+    GeomAbs_CurveType aTFrom;
     gp_Circ aCirc;
     gp_Lin  aLine;
     gp_Pnt aPCenter, aPOnLine;
 
     aTFrom=myCFrom.GetType();
-    aTTo  =myCTo.GetType();
     
     if (aTFrom==GeomAbs_Circle) {
       aCirc=myCFrom.Circle();
diff --git a/src/IntTools/IntTools_EdgeFace.cxx b/src/IntTools/IntTools_EdgeFace.cxx
index 59bc344..88b60f8 100644
--- a/src/IntTools/IntTools_EdgeFace.cxx
+++ b/src/IntTools/IntTools_EdgeFace.cxx
@@ -351,14 +351,13 @@ static
 					       Standard_Real& tRoot)
 {
   Standard_Real tm, t1, t2, aEpsT;
-  Standard_Integer anIsProj1, anIsProj2, anIsProjm;
+  Standard_Integer anIsProj1, anIsProjm;
   aEpsT=0.5*myEpsT;
   //
   // Root is inside [tt1, tt2]
   t1=tt1;  
   t2=tt2;
   anIsProj1=ff1;
-  anIsProj2=ff2;
   
   while (1) {
     if (fabs(t1-t2) < aEpsT) {
@@ -370,7 +369,6 @@ static
     
     if (anIsProjm != anIsProj1) {
       t2=tm;
-      anIsProj2=anIsProjm;
     }
     else {
       t1=tm;
@@ -645,9 +643,6 @@ static
 
   k=n-1;
   for (i=1; i<k; i++) {
-    Standard_Real ti, ti1;
-    ti=t(i);
-    ti1=t(i-1);
     fd(i)=.5*(f(i+1)-f(i-1))/(t(i)-t(i-1));
     if (fabs(fd(i)) < dEpsNull){
       fd(i)=0.;
@@ -951,13 +946,13 @@ static
 					  const Standard_Real tb) 
 {
   IntTools_CArray1OfReal anArgs, aFunc;
-  Standard_Integer i, aNb, pri, aCnt=0;
+  Standard_Integer i, aNb, aCnt=0;
   //
   Standard_Integer aCntIncreasing=1, aCntDecreasing=1;
   Standard_Real t, f, f1;
   //
   // Prepare values of arguments for the interval [ta, tb]
-  pri=IntTools::PrepareArgs (myC, tb, ta, myDiscret, myDeflection, anArgs);
+  IntTools::PrepareArgs (myC, tb, ta, myDiscret, myDeflection, anArgs);
   aNb=anArgs.Length();
   
   aFunc.Resize(aNb);
@@ -1018,7 +1013,7 @@ static
 					     const IntTools_CArray1OfReal& f)  
 {
   Standard_Integer i, n, k;
-  Standard_Real fr, tr;
+  Standard_Real tr;
   IntTools_CArray1OfReal fd;
   TColStd_SequenceOfReal aTSeq, aFSeq;  
   
@@ -1065,7 +1060,7 @@ static
     //
     if (fd1*fd2 < 0.) {
       tr=FindSimpleRoot(2, t1, t2, fd1);
-      fr=DistanceFunction(tr);
+      DistanceFunction(tr);
       myPar1=tr;
       myParallel=Standard_False;
       break;
@@ -1073,7 +1068,6 @@ static
     
     if (!bF1 && bF2) {
       tr=t2;
-      fr=fd2;
       myPar1=tr;
       myParallel=Standard_False;
       break;
@@ -1081,7 +1075,6 @@ static
     
     if (bF1 && !bF2) {
       tr=t1;
-      fr=fd1;
       myPar1=tr;
       myParallel=Standard_False;
       break;
@@ -1564,17 +1557,14 @@ Standard_Integer AdaptiveDiscret (const Standard_Integer iDiscret,
 
   iDiscretNew=iDiscret;
 
-  GeomAbs_CurveType   aCType;
   GeomAbs_SurfaceType aSType;
 
-  aCType=aCurve.GetType();
   aSType=aSurface.GetType();
     
   if (aSType==GeomAbs_Cylinder) {
-   Standard_Real aELength, aRadius, dL, dLR;
+   Standard_Real aELength, aRadius, dLR;
 
    aELength=IntTools::Length(aCurve.Edge());
-   dL=aELength/iDiscret;
    
    gp_Cylinder aCylinder=aSurface.Cylinder();
    aRadius=aCylinder.Radius();
diff --git a/src/IntTools/IntTools_FaceFace.cxx b/src/IntTools/IntTools_FaceFace.cxx
index a53d105..ae7a29d 100644
--- a/src/IntTools/IntTools_FaceFace.cxx
+++ b/src/IntTools/IntTools_FaceFace.cxx
@@ -388,7 +388,7 @@ void IntTools_FaceFace::SetList(IntSurf_ListOfPntOn2S& aListOfPnts)
   void IntTools_FaceFace::Perform(const TopoDS_Face& aF1,
 				  const TopoDS_Face& aF2)
 {
-  Standard_Boolean hasCone, RestrictLine, bTwoPlanes, bReverse;
+  Standard_Boolean hasCone, RestrictLine, bReverse;
   Standard_Integer aNbLin, aNbPnts, i, NbLinPP;
   Standard_Real TolArc, TolTang, Deflection, UVMaxStep;
   Standard_Real umin, umax, vmin, vmax;
@@ -404,7 +404,6 @@ void IntTools_FaceFace::SetList(IntSurf_ListOfPntOn2S& aListOfPnts)
   myIsDone = Standard_False;
   myNbrestr=0;//?
   hasCone = Standard_False;
-  bTwoPlanes = Standard_False;
   //
   myFace1=aF1;
   myFace2=aF2;
@@ -445,7 +444,6 @@ void IntTools_FaceFace::SetList(IntSurf_ListOfPntOn2S& aListOfPnts)
   //
   NbLinPP = 0;
   if(aType1==GeomAbs_Plane && aType2==GeomAbs_Plane){
-    bTwoPlanes = Standard_True;
 
     BRepTools::UVBounds(myFace1, umin, umax, vmin, vmax);
     myHS1->ChangeSurface().Load(S1, umin, umax, vmin, vmax);
diff --git a/src/LocOpe/LocOpe.cxx b/src/LocOpe/LocOpe.cxx
index 6e68ef7..d9a4b23 100644
--- a/src/LocOpe/LocOpe.cxx
+++ b/src/LocOpe/LocOpe.cxx
@@ -155,7 +155,6 @@ Standard_Boolean LocOpe::TgtFaces(const TopoDS_Edge& E,
   gp_Vec d1,d2;
 
   Standard_Real uu, vv;
-  Standard_Real angle[21];
 
   Standard_Integer i;
   for(i = 0; i <= 20; i++){
@@ -170,7 +169,6 @@ Standard_Boolean LocOpe::TgtFaces(const TopoDS_Edge& E,
     d2 = (du.Crossed(dv)).Normalized();
     if(rev2) d2.Reverse();
     ang = d1.Angle(d2);
-    angle[i] = ang;
     if(ang <= angmin) angmin = ang;
     if(ang >= angmax) angmax = ang;
   }
diff --git a/src/LocOpe/LocOpe_BuildWires.cxx b/src/LocOpe/LocOpe_BuildWires.cxx
index 817beb8..aa11e56 100644
--- a/src/LocOpe/LocOpe_BuildWires.cxx
+++ b/src/LocOpe/LocOpe_BuildWires.cxx
@@ -150,7 +150,6 @@ void LocOpe_BuildWires::Perform(const TopTools_ListOfShape& L,
 
     TopoDS_Wire newWire;
     B.MakeWire(newWire);
-    Standard_Integer BorneInf;
 
     if (mapV.Contains(VL)) { // on sort avec une boucle a recreer
       TopoDS_Vertex Vf;
@@ -169,14 +168,12 @@ void LocOpe_BuildWires::Perform(const TopTools_ListOfShape& L,
 	}
 	mapV.Remove(Vf);
       }
-      BorneInf = j;
       for (; j<= mapE.Extent(); j++) {
 	B.Add(newWire,mapE(j));
       }
       newWire.Closed(Standard_True);
     }
     else { // on sort sur un bord : wire ouvert...
-      BorneInf = 1;
       mapV.Add(VL);
       for (Standard_Integer j = 1; j <= mapE.Extent(); j++) {
 	B.Add(newWire,mapE(j));
diff --git a/src/LocOpe/LocOpe_Builder.cxx b/src/LocOpe/LocOpe_Builder.cxx
index 59ee008..029ae7f 100644
--- a/src/LocOpe/LocOpe_Builder.cxx
+++ b/src/LocOpe/LocOpe_Builder.cxx
@@ -75,7 +75,7 @@ void RemoveFaces(const TopoDS_Shape& theComp, const BOPTools_PDSFiller& theDSFil
     aCompMap.Add(anExp.Current());
   }
 
-  Standard_Integer aNbFFs=aFFs.Extent(), i, j, aNbS, aNbCurves, nSect;
+  Standard_Integer aNbFFs=aFFs.Extent(), i, j, aNbCurves, nSect;
 
     for (i=1; i<=aNbFFs; ++i) {
       BOPTools_SSInterference& aFFi=aFFs(i);
@@ -83,7 +83,6 @@ void RemoveFaces(const TopoDS_Shape& theComp, const BOPTools_PDSFiller& theDSFil
       //
       // Old Section Edges
       const BOPTools_ListOfPaveBlock& aSectList=aFFi.PaveBlocks();
-      aNbS=aSectList.Extent();
       BOPTools_ListIteratorOfListOfPaveBlock anIt(aSectList);
       for (; anIt.More();anIt.Next()) {
 	const BOPTools_PaveBlock& aPB=anIt.Value();
@@ -112,7 +111,6 @@ void RemoveFaces(const TopoDS_Shape& theComp, const BOPTools_PDSFiller& theDSFil
       for (j=1; j<=aNbCurves; j++) {
 	BOPTools_Curve& aBC=aBCurves(j);
 	const BOPTools_ListOfPaveBlock& aSectEdges=aBC.NewPaveBlocks();
-	aNbS=aSectEdges.Extent();
 	
 	BOPTools_ListIteratorOfListOfPaveBlock aPBIt(aSectEdges);
 	for (; aPBIt.More(); aPBIt.Next()) {
diff --git a/src/LocOpe/LocOpe_Generator.cxx b/src/LocOpe/LocOpe_Generator.cxx
index 5d146a3..c32ff05 100644
--- a/src/LocOpe/LocOpe_Generator.cxx
+++ b/src/LocOpe/LocOpe_Generator.cxx
@@ -235,7 +235,7 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
   TopTools_ListOfShape RebuildFace;
   TopTools_MapOfShape mapTreated;
   TopTools_DataMapOfShapeShape DontFuse;
-  TopAbs_Orientation orient,orface,orsav;
+  TopAbs_Orientation orient,orface;
 
   for (itf.Reset(); itf.More(); itf.Next()) {
     const TopoDS_Face& fac = TopoDS::Face(itf.Key());
@@ -451,7 +451,6 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
   for (itf.Reset();itf.More(); itf.Next()) {
     const TopoDS_Face& fac = TopoDS::Face(itf.Key());
     Standard_Boolean ModFace = Standard_False;
-    Standard_Boolean HasWire = Standard_False;
     TopTools_ListOfShape listofedg;
 
     EdgAdded.Clear();
@@ -486,7 +485,6 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
 	for (exp2.Init(wir,TopAbs_EDGE); exp2.More(); exp2.Next()) {
 	  listofedg.Append(exp2.Current());
 	}
-	HasWire = Standard_True;
       }
       else {
 	if (!ModFace) { 
@@ -578,19 +576,16 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
 		  }
 		}
 //		B.Add(newface,theNew);
-		HasWire = Standard_True;
 	      }
 	    }
 	  }
 	  ModFace = Standard_True;
 	}
 	
-	orsav = wir.Orientation();
 	// reconstruction du wire
 	//B.MakeWire(newwire);
 
 	Handle(Geom2d_Curve) C2d,C2d1;
-	Standard_Boolean EmptyWire = Standard_True;
     
 //	for (exp2.Init(wir.Oriented(TopAbs_FORWARD),TopAbs_EDGE); 
 	for (exp2.Init(wir,TopAbs_EDGE); exp2.More(); exp2.Next()) {
@@ -600,7 +595,6 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
 //	    B.Add(newwire,edg.Oriented(or));
 //            listofedg.Append(edg.Oriented(or));
             listofedg.Append(edg);
-	    EmptyWire = Standard_False;
 	  }
 	  else if (myModShapes.IsBound(edg) || theEEMap.IsBound(edg)) {
 	    if (myModShapes.IsBound(edg)) {
@@ -611,7 +605,6 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
 	    }
 //	    B.Add(newwire,newedg.Oriented(or));
 	    listofedg.Append(newedg.Oriented(orient));
-	    EmptyWire = Standard_False;
 	    C = BRep_Tool::Curve(newedg,loc,f,l);
 	    if (!loc.IsIdentity()) {
 	      Handle(Geom_Geometry) GG = C->Transformed(loc.Transformation());
@@ -858,7 +851,6 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
 		orient = TopAbs::Compose(orface,edg.Orientation());
 		//		B.Add(newwire,edg.Oriented(or));
 		listofedg.Append(edg.Oriented(orient));
-		EmptyWire = Standard_False;
 		EdgAdded.Add(edg);
 		if (P.IsNull()) {  
 		  // on met les courbes 2d si on n`est pas sur un plan
diff --git a/src/LocOpe/LocOpe_SplitDrafts.cxx b/src/LocOpe/LocOpe_SplitDrafts.cxx
index ea4ca76..20aba0d 100644
--- a/src/LocOpe/LocOpe_SplitDrafts.cxx
+++ b/src/LocOpe/LocOpe_SplitDrafts.cxx
@@ -1602,10 +1602,9 @@ static TopoDS_Edge  NewEdge(const TopoDS_Edge& edg,
   Standard_Real prmf=0,prml=0;
   GeomAdaptor_Curve TheCurve;
 	
-  Standard_Integer i,imin,k;
+  Standard_Integer i,k;
   gp_Pnt pvf = BRep_Tool::Pnt(V1);
   gp_Pnt pvl = BRep_Tool::Pnt(V2);
-  imin = 0;
   for (i=1; i<= i2s.NbLines(); i++) {
     TheCurve.Load(i2s.Line(i));
     Extrema_ExtPC myExtPC(pvf,TheCurve);
diff --git a/src/MAT2d/MAT2d_Circuit.cxx b/src/MAT2d/MAT2d_Circuit.cxx
index 90254b3..9da326e 100644
--- a/src/MAT2d/MAT2d_Circuit.cxx
+++ b/src/MAT2d/MAT2d_Circuit.cxx
@@ -520,8 +520,8 @@ void  MAT2d_Circuit::InsertCorner (TColGeom2d_SequenceOfGeometry& Line) const
   if (AffichCircuit) {
     if (Insert) {
       Curve      = Handle(Geom2d_TrimmedCurve)::DownCast(Line.Value(isuiv));
-      gp_Pnt2d P = Curve->StartPoint();
 #ifdef DRAW
+      gp_Pnt2d P = Curve->StartPoint();
       Handle(Draw_Marker2D) dr = new Draw_Marker2D(P,Draw_Plus,Draw_vert); 
       dout << dr;
       dout.Flush();
@@ -787,22 +787,19 @@ static Standard_Boolean IsSharpCorner (const Handle(Geom2d_Geometry)& Geom1,
 #ifdef DEB
   static Standard_Boolean Affich = 0;
   if (Affich) {
+#ifdef DRAW
     Standard_Real DU1 = (OC1.LastParameter() - OC1.FirstParameter())/9.;
     Standard_Real DU2 = (OC2.LastParameter() - OC2.FirstParameter())/9.;
     for (Standard_Integer ki = 0; ki <= 9; ki++) {
       gp_Pnt2d P1 = OC1.Value(OC1.FirstParameter()+ki*DU1);
       gp_Pnt2d P2 = OC2.Value(OC2.FirstParameter()+ki*DU2);
-#ifdef DRAW
       Handle(Draw_Marker2D) dr1 = new Draw_Marker2D(P1,Draw_Plus,Draw_vert);
       Handle(Draw_Marker2D) dr2 = new Draw_Marker2D(P2,Draw_Plus,Draw_rouge); 
       dout << dr1;
       dout << dr2;
     }
     dout.Flush();
-#else
-  }
 #endif
-  
   }
 #endif
   
diff --git a/src/MAT2d/MAT2d_Tool2d.cxx b/src/MAT2d/MAT2d_Tool2d.cxx
index 9da9715..325ac20 100644
--- a/src/MAT2d/MAT2d_Tool2d.cxx
+++ b/src/MAT2d/MAT2d_Tool2d.cxx
@@ -527,7 +527,6 @@ Standard_Boolean MAT2d_Tool2d::Projection (const Standard_Integer IEdge   ,
   Handle(Standard_Type)       Type   = Elt->DynamicType();	
   Handle(Geom2d_TrimmedCurve) Curve; 
   Standard_Integer            INext;   
-  Standard_Real               ParameterOnC;
   Standard_Real               Eps = MAT2d_TOLCONF;//*10.;
 
   if (Type == STANDARD_TYPE(Geom2d_CartesianPoint)) {	
@@ -578,7 +577,6 @@ Standard_Boolean MAT2d_Tool2d::Projection (const Standard_Integer IEdge   ,
       if (Extremas.NbExt() == 0 ) return Standard_False; // Pas de solution!
       for (Standard_Integer i = 1; i <= Extremas.NbExt(); i++) {
 	if (Extremas.SquareDistance(i) < Distance * Distance) {
-	  ParameterOnC  = Extremas.Point(i).Parameter();
 	  Distance      = sqrt (Extremas.SquareDistance(i));
 	}
       }
diff --git a/src/MFT/MFT_FontManager.cxx b/src/MFT/MFT_FontManager.cxx
index 6099799..e215d56 100644
--- a/src/MFT/MFT_FontManager.cxx
+++ b/src/MFT/MFT_FontManager.cxx
@@ -1739,7 +1739,6 @@ TCollection_ExtendedString estring(aString);
 // =============================================================================
 
 void MFT_FontManager::DrawText(const Handle(MFT_TextManager)& aTextManager, const Standard_CString aString, const Quantity_Length anX, const Quantity_Length anY, const Quantity_PlaneAngle anOrientation) {
-Standard_Boolean vazy;
 
     this->SetTextAttribs(aString,anOrientation);
 
@@ -1754,7 +1753,7 @@ Standard_Boolean vazy;
 				Cwidth,Cheight,Cslant,myPaintType);
     while ( theCharCount < theStringLength ) {
       aPosition = Standard_Integer((unsigned char)theAsciiString.Value(theCharCount+1));
-      vazy = this->DrawChar(aTextManager,aPosition);
+      this->DrawChar(aTextManager,aPosition);
       theCharCount++;
     }
     aTextManager->EndString();
@@ -1771,7 +1770,6 @@ Standard_Boolean vazy;
 // =============================================================================
 
 void MFT_FontManager::DrawText(const Handle(MFT_TextManager)& aTextManager, const Standard_ExtString aString, const Quantity_Length anX, const Quantity_Length anY, const Quantity_PlaneAngle anOrientation) {
-Standard_Boolean vazy;
 
     this->SetTextAttribs(aString,anOrientation);
 
@@ -1789,7 +1787,7 @@ Standard_Boolean vazy;
         aPosition = Standard_Integer((unsigned char)theAsciiString.Value(theCharCount+1));
       else
         aPosition = Standard_Integer((unsigned short)theExtendedString.Value(theCharCount+1));
-      vazy = this->DrawChar(aTextManager,aPosition);
+      this->DrawChar(aTextManager,aPosition);
       theCharCount++;
     }
     aTextManager->EndString();
diff --git a/src/Materials/Materials_MaterialDefinition.cxx b/src/Materials/Materials_MaterialDefinition.cxx
index 5c3fd16..b9aa9bf 100644
--- a/src/Materials/Materials_MaterialDefinition.cxx
+++ b/src/Materials/Materials_MaterialDefinition.cxx
@@ -40,7 +40,7 @@ Handle(Dynamic_Parameter) Materials_MaterialDefinition::Switch(
   const Standard_CString atype,
   const Standard_CString avalue) const
 {
-  Standard_Integer fr,i;
+  Standard_Integer i;
   char value1[80],value2[80],value3[80];
   Handle(Dynamic_Parameter) parameter;
   Handle(Dynamic_ObjectParameter) objectparameter;
@@ -51,7 +51,7 @@ Handle(Dynamic_Parameter) Materials_MaterialDefinition::Switch(
       for(i=0; i<80; i++)value2[i] = 0;
       for(i=0; i<80; i++)value3[i] = 0;
       //      fr = sscanf(avalue,"%s%s%s",&value1,&value2,&value3);
-      fr = sscanf(avalue,"%s%s%s",value1,value2,value3);
+      sscanf(avalue,"%s%s%s",value1,value2,value3);
       
       Handle(Materials_Color) pcolor =
 	new Materials_Color(Quantity_Color(atof(value1),
diff --git a/src/MeshTest/MeshTest.cxx b/src/MeshTest/MeshTest.cxx
index 524cfbd..49dbbfe 100644
--- a/src/MeshTest/MeshTest.cxx
+++ b/src/MeshTest/MeshTest.cxx
@@ -1110,11 +1110,7 @@ Standard_Integer tri2d(Draw_Interpretor&, Standard_Integer n, const char** a)
 
   T = BRep_Tool::Triangulation(F, L);
   if (!T.IsNull()) {
-#ifdef DEB
-    gp_Trsf tr  = L.Transformation();
-#else
     L.Transformation();
-#endif
 
     // Build the connect tool
     Poly_Connect pc(T);
diff --git a/src/MeshVS/MeshVS_ElementalColorPrsBuilder.cxx b/src/MeshVS/MeshVS_ElementalColorPrsBuilder.cxx
index ddd950b..a9fc96f 100644
--- a/src/MeshVS/MeshVS_ElementalColorPrsBuilder.cxx
+++ b/src/MeshVS/MeshVS_ElementalColorPrsBuilder.cxx
@@ -168,8 +168,6 @@ void MeshVS_ElementalColorPrsBuilder::Build ( const Handle(Prs3d_Presentation)&
   }
 
   //Now we are ready to draw faces with equal colors
-  Aspect_InteriorStyle aStyle;
-  Standard_Integer     aStyleInt;
   Aspect_TypeOfLine    anEdgeType = Aspect_TOL_SOLID;
   Aspect_TypeOfLine    aLineType = Aspect_TOL_SOLID;
   Standard_Integer     anEdgeInt, aLineInt;
@@ -188,9 +186,6 @@ void MeshVS_ElementalColorPrsBuilder::Build ( const Handle(Prs3d_Presentation)&
   aDrawer->GetBoolean( MeshVS_DA_ColorReflection, IsReflect );
   aDrawer->GetBoolean( MeshVS_DA_SmoothShading, IsMeshSmoothShading );
 
-  if ( aDrawer->GetInteger ( MeshVS_DA_InteriorStyle, aStyleInt) )
-    aStyle = (Aspect_InteriorStyle) aStyleInt;
-
   if ( aDrawer->GetInteger ( MeshVS_DA_EdgeType, anEdgeInt) )
     anEdgeType = (Aspect_TypeOfLine) anEdgeInt;
 
diff --git a/src/NCollection/NCollection_BaseAllocator.cxx b/src/NCollection/NCollection_BaseAllocator.cxx
index 509b0cf..4537622 100644
--- a/src/NCollection/NCollection_BaseAllocator.cxx
+++ b/src/NCollection/NCollection_BaseAllocator.cxx
@@ -201,7 +201,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);
@@ -209,7 +208,6 @@ void NCollection_BaseAllocator::StandardCallBack
       if (CurrentID == StandardCallBack_CatchID())
       {
         // Place for break point for allocation of investigated ID
-        a = 1;
       }
     }
     else
@@ -221,7 +219,6 @@ void NCollection_BaseAllocator::StandardCallBack
         if (anID == StandardCallBack_CatchID())
         {
           // Place for break point for freeing of investigated ID
-          a = 0;
         }
       }
     }
diff --git a/src/NIS/NIS_View.cxx b/src/NIS/NIS_View.cxx
index 874de84..47be974 100644
--- a/src/NIS/NIS_View.cxx
+++ b/src/NIS/NIS_View.cxx
@@ -538,7 +538,6 @@ void  NIS_View::Select (const NCollection_List<gp_XY> &thePolygon,
   const gp_Ax3 anAx3 (anEye, aProj, anXdir);
   gp_Trsf aTrf;
   aTrf.SetTransformation (anAx3);
-  const gp_Trsf aTrfInv = aTrf.Inverted();
 
   // Prepare list of 2d points of selection polygon.
   NCollection_List<gp_XY>           aPoints;
diff --git a/src/OSD/OSD.cxx b/src/OSD/OSD.cxx
index 60814fa..b0645b5 100644
--- a/src/OSD/OSD.cxx
+++ b/src/OSD/OSD.cxx
@@ -141,13 +141,12 @@ void OSD::MilliSecSleep(const Standard_Integer aDelay)
 
 void OSD::MilliSecSleep(const Standard_Integer aDelay)
 {
-  int fdn ;
   struct timeval timeout ;
 
   timeout.tv_sec = aDelay / 1000 ;
   timeout.tv_usec = (aDelay % 1000) * 1000 ;
 
-  fdn = select(0,NULL,NULL,NULL,&timeout) ;
+  select(0,NULL,NULL,NULL,&timeout) ;
 }
 
 #endif
diff --git a/src/OpenGl/OpenGl_GraphicDriver_703.cxx b/src/OpenGl/OpenGl_GraphicDriver_703.cxx
index f6d2412..c671588 100644
--- a/src/OpenGl/OpenGl_GraphicDriver_703.cxx
+++ b/src/OpenGl/OpenGl_GraphicDriver_703.cxx
@@ -44,14 +44,14 @@ void OpenGl_GraphicDriver::Marker (const Graphic3d_CGroup& ACGroup, const Graphi
   amarker.y = float (APoint.Y ());
   amarker.z = float (APoint.Z ());
 
-  Standard_Real AMR, AMG, AMB, R, G, B;
+  Standard_Real AMR, R, G, B;
   Aspect_TypeOfMarker AMType;
   Standard_Real AMScale, AScale;
 
   // Sauvegarde des valeurs initiales
   AMR = R = Standard_Real (MyCGroup.ContextMarker.Color.r);
-  AMG = G = Standard_Real (MyCGroup.ContextMarker.Color.g);
-  AMB = B = Standard_Real (MyCGroup.ContextMarker.Color.b);
+  G = Standard_Real (MyCGroup.ContextMarker.Color.g);
+  B = Standard_Real (MyCGroup.ContextMarker.Color.b);
   AMType  = Aspect_TypeOfMarker (MyCGroup.ContextMarker.MarkerType);
   AMScale = AScale = Standard_Real (MyCGroup.ContextMarker.Scale);
 
@@ -295,14 +295,14 @@ void OpenGl_GraphicDriver::MarkerSet (const Graphic3d_CGroup& ACGroup,
   almarkers.NbMarkers = int (ListVertex.Length ());
   almarkers.Markers = (CALL_DEF_MARKER *) &ListVertex (Lower);
 
-  Standard_Real AMR, AMG, AMB, R, G, B;
+  Standard_Real AMR, R, G, B;
   Aspect_TypeOfMarker AMType;
   Standard_Real AMScale, AScale;
 
   // Sauvegarde des valeurs initiales
   AMR = R = Standard_Real (MyCGroup.ContextMarker.Color.r);
-  AMG = G = Standard_Real (MyCGroup.ContextMarker.Color.g);
-  AMB = B = Standard_Real (MyCGroup.ContextMarker.Color.b);
+  G = Standard_Real (MyCGroup.ContextMarker.Color.g);
+  B = Standard_Real (MyCGroup.ContextMarker.Color.b);
   AMType  = Aspect_TypeOfMarker (MyCGroup.ContextMarker.MarkerType);
   AMScale = AScale = Standard_Real (MyCGroup.ContextMarker.Scale);
 
diff --git a/src/OpenGl/OpenGl_curve.cxx b/src/OpenGl/OpenGl_curve.cxx
index f03bc4a..5a52a8e 100644
--- a/src/OpenGl/OpenGl_curve.cxx
+++ b/src/OpenGl/OpenGl_curve.cxx
@@ -107,7 +107,6 @@ CurveDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
   CMN_KEY        key;
   TEL_COLOUR     colour;
   int            i, j;
-  GLfloat          reseau[4][3];
 
   d = (tel_curve_data)data.pdata;
 
@@ -134,11 +133,6 @@ CurveDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
     TsmGetAttri( 1, &key );
   }
 
-  /* Recopie des points du reseau : Pb prototypage en c ansi */
-  for( i = 0; i < 4; i++ )
-    for( j = 0; i < 3; i++ )
-      reseau[i][j] = d->vertices[i].xyz[j];
-
   /* Determination du type de courbe */
   switch( d->type )
   {
diff --git a/src/OpenGl/OpenGl_execstruct.cxx b/src/OpenGl/OpenGl_execstruct.cxx
index 1110024..d35b11b 100644
--- a/src/OpenGl/OpenGl_execstruct.cxx
+++ b/src/OpenGl/OpenGl_execstruct.cxx
@@ -296,7 +296,6 @@ ExecuteStructureDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
   register Tint     display = 1;
   register Tint     highl = TOff;
   register TelType  elem;
-  Tint              vp;
   CMN_KEY           key;
 #ifdef G003
   static GLboolean s_fWire            = GL_FALSE;
@@ -353,7 +352,6 @@ ExecuteStructureDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
   }  /* end if */
 #endif  /* G003 */
 
-  vp = key.data.ldata;
   for( i = 0; i < num; i++, node = node->next )
   {
     elem = node->elem.el;
diff --git a/src/OpenGl/OpenGl_indexpolygons.cxx b/src/OpenGl/OpenGl_indexpolygons.cxx
index bb5ba24..83f1a6f 100644
--- a/src/OpenGl/OpenGl_indexpolygons.cxx
+++ b/src/OpenGl/OpenGl_indexpolygons.cxx
@@ -1418,14 +1418,13 @@ doDraw:
 #ifdef G003
 static void draw_degenerates_as_points ( tel_indexpoly_data p ) {
 
-  Tint*      ind, *vis;
-  Tint       i, j, n, a, newList = 0;
+  Tint*      ind;
+  Tint       i, j, n, a;
   GLfloat    pt[ 3 ];
   tel_point  pv;
 
   pv  = p -> vertices;
   ind = p -> indices;
-  vis = p -> edge_vis;
 
   LightOff ();
 
@@ -1440,7 +1439,6 @@ static void draw_degenerates_as_points ( tel_indexpoly_data p ) {
     p -> d.degMode   = 3;
     p -> d.skipRatio = g_fSkipRatio;
     glNewList ( p -> d.dlist, GL_COMPILE_AND_EXECUTE );
-    newList = 1;
 doDraw:
     if ( g_fSkipRatio == 0.0F ) {
 
diff --git a/src/OpenGl/OpenGl_polygon.cxx b/src/OpenGl/OpenGl_polygon.cxx
index bcfb92a..cfb3ceb 100644
--- a/src/OpenGl/OpenGl_polygon.cxx
+++ b/src/OpenGl/OpenGl_polygon.cxx
@@ -892,7 +892,7 @@ draw_polygon_concav( tel_polygon_data d, Tint front_lighting_model, Tint hflag )
 static void
 draw_tmesh( tel_polygon_data d, Tint v )
 {
-  Tint      i, j, k;
+  Tint      i, j;
   DISPLAY_ *dis;
   SEQ_     *s;
   extra_vertex b;
@@ -907,7 +907,7 @@ draw_tmesh( tel_polygon_data d, Tint v )
     {
     case 1:
       {
-        for( j = 0, k = 0; j < s->ts_num; j++ )
+        for( j = 0; j < s->ts_num; j++ )
         {
           if ( s->tmesh_sequence[j] < (void *)0xffff )
             glVertex3fv( d->vertices[ (long)s->tmesh_sequence[ j ] ].xyz );
@@ -921,7 +921,7 @@ draw_tmesh( tel_polygon_data d, Tint v )
       }
     case 2:
       {
-        for( j = 0, k = 0; j < s->ts_num; j++ )
+        for( j = 0; j < s->ts_num; j++ )
         {
           if ( s->tmesh_sequence[j] < (void *)0xffff ) {
             glColor3fv( d->vcolours[ (long) s->tmesh_sequence[ j ] ].rgb );
@@ -936,7 +936,7 @@ draw_tmesh( tel_polygon_data d, Tint v )
       }
     case 3:
       {
-        for( j = 0, k = 0; j < s->ts_num; j++ )
+        for( j = 0; j < s->ts_num; j++ )
         {
           if ( s->tmesh_sequence[j] < (void *)0xffff ) {
             glNormal3fv( d->vnormals[ (long) s->tmesh_sequence[ j ] ].xyz);
diff --git a/src/OpenGl/OpenGl_polygonholes.cxx b/src/OpenGl/OpenGl_polygonholes.cxx
index 885f2ab..f038d53 100644
--- a/src/OpenGl/OpenGl_polygonholes.cxx
+++ b/src/OpenGl/OpenGl_polygonholes.cxx
@@ -302,9 +302,7 @@ PolygonHolesDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
   Tint           fl=0;
   Tint           front_lighting_model, back_lighting_model;
   Tint           front_lighting_model_preserve, back_lighting_model_preserve;
-  Tint           front_shading_method;
   Tint           interior_style;
-  Tint           interior_index;
   TEL_COLOUR     interior_colour, back_interior_colour;
   TEL_COLOUR     point_colour, edge_colour;
   TelCullMode    face_culling_mode;
@@ -334,12 +332,10 @@ PolygonHolesDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
   face_distinguishing_mode = k11.data.ldata;
   front_lighting_model     = k12.data.ldata;
   front_lighting_model_preserve = k12.data.ldata;
-  front_shading_method     = k13.data.ldata;
   back_lighting_model      = k14.data.ldata;
   back_lighting_model_preserve = k14.data.ldata;
   face_culling_mode        = (TelCullMode)k16.data.ldata;
   interior_style           = k17.data.ldata;
-  interior_index           = k19.data.ldata;
 
   if( k[0]->id == TOn )
   {                          /* Use highlight colours */
@@ -546,7 +542,7 @@ draw_polygon_holes( tel_polygon_holes_data d,
 static void
 draw_tmesh( tel_polygon_holes_data d, Tint v )
 {
-  Tint     i, j, k;
+  Tint     i, j;
   DISPLAY_ *dis;
   SEQ_     *s;
 
@@ -560,7 +556,7 @@ draw_tmesh( tel_polygon_holes_data d, Tint v )
     {
     case 1:
       {
-        for( j = 0, k = 0; j < s->ts_num; j++ )
+        for( j = 0; j < s->ts_num; j++ )
         {
           if ( s->tmesh_sequence[j] < (void *)0xffff ) {
             glVertex3fv( d->vertices[ (long)s->tmesh_sequence[ j ] ].xyz );
@@ -574,7 +570,7 @@ draw_tmesh( tel_polygon_holes_data d, Tint v )
       }
     case 2:
       {
-        for( j = 0, k = 0; j < s->ts_num; j++ )
+        for( j = 0; j < s->ts_num; j++ )
         {
           if ( s->tmesh_sequence[j] < (void *)0xffff ) {
             glColor3fv( d->vcolours[ (long) s->tmesh_sequence[ j ] ].rgb );
@@ -589,7 +585,7 @@ draw_tmesh( tel_polygon_holes_data d, Tint v )
       }
     case 3:
       {
-        for( j = 0, k = 0; j < s->ts_num; j++ )
+        for( j = 0; j < s->ts_num; j++ )
         {
           if ( s->tmesh_sequence[j] < (void *)0xffff) {
             glNormal3fv( d->vnormals[ (long) s->tmesh_sequence[ j ] ].xyz );
diff --git a/src/OpenGl/OpenGl_qstrip.cxx b/src/OpenGl/OpenGl_qstrip.cxx
index 64ad824..3d8dada 100644
--- a/src/OpenGl/OpenGl_qstrip.cxx
+++ b/src/OpenGl/OpenGl_qstrip.cxx
@@ -504,13 +504,12 @@ static void draw_qstrip (
 {
 
   Tint              i, m, newList = 0;
-  Tint              nf, nv, nr, nc;
+  Tint              nr, nc;
   Tint              lighting_model;
-  tel_point         pv, pfn, pvn;
+  tel_point         pv, pvn;
   tel_colour        pfc, pvc;
   tel_texture_coord pvt;
 
-  pfn = p -> fnormals;
   pfc = p -> fcolours;
   pv  = p -> vertices;
   pvc = p -> vcolours;
@@ -538,8 +537,6 @@ static void draw_qstrip (
     lighting_model = front_lighting_model;
     nr             = p -> num_rows;
     nc             = p -> num_columns;
-    nf             = nr * nc;
-    nv             = ( nr + 1 ) * ( nc + 1 );
 #ifdef G003
 #ifdef BUC60876
     if ( !g_fAnimation )
@@ -1079,7 +1076,6 @@ static void draw_edges (
   Tint      edge_type, line_type_preserve;
   Tfloat    edge_width, line_width_preserve;
   GLboolean texture_on;
-  tel_point pv;     
 #ifdef G003
   if ( interior_style != TSM_HIDDENLINE && !forceDraw ) 
   {
@@ -1094,8 +1090,6 @@ static void draw_edges (
 
   }  /* end if */
 
-  pv = p -> vertices;
-
   LightOff ();
   texture_on = IsTextureEnabled ();
 
diff --git a/src/OpenGl/OpenGl_text.cxx b/src/OpenGl/OpenGl_text.cxx
index e792e6d..6296392 100644
--- a/src/OpenGl/OpenGl_text.cxx
+++ b/src/OpenGl/OpenGl_text.cxx
@@ -187,7 +187,6 @@ TextDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
   GLdouble        obj3X, obj3Y, obj3Z;
   GLdouble        winx1, winy1, winz1;
   GLdouble        winx, winy, winz;
-  GLint           status;
 
 #ifdef TEXT_DEGENER
   if ( g_nDegenerateModel > 0 && g_fSkipRatio == 1. )
@@ -283,31 +282,31 @@ TextDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
       objrefX = (float)d->attach_pt.xyz[0];   
       objrefY = (float)d->attach_pt.xyz[1];   
       objrefZ = (float)d->attach_pt.xyz[2];
-      status = gluProject (objrefX, objrefY, objrefZ, modelMatrix, projMatrix, viewport,
+      gluProject (objrefX, objrefY, objrefZ, modelMatrix, projMatrix, viewport,
         &winx1, &winy1, &winz1);
 
       winx = winx1;
       winy = winy1-sDescent;
       winz = winz1+0.00001;     
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &objX, &objY, &objZ);
 
       winx = winx1 + sWidth;
       winy = winy1-sDescent;
       winz = winz1+0.00001; /* il vaut mieux F+B / 1000000 ? */     
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &obj1X, &obj1Y, &obj1Z);
 
       winx = winx1 + sWidth;
       winy = winy1 + sAscent;
       winz = winz1+0.00001;     
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &obj2X, &obj2Y, &obj2Z);
 
       winx = winx1;
       winy = winy1+ sAscent;
       winz = winz1+0.00001;   
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &obj3X, &obj3Y, &obj3Z);
 
       glColor3fv( colours.rgb );
@@ -323,32 +322,32 @@ TextDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
       objrefX = (float)d->attach_pt.xyz[0];   
       objrefY = (float)d->attach_pt.xyz[1];   
       objrefZ = (float)d->attach_pt.xyz[2];
-      status = gluProject (objrefX, objrefY, objrefZ, modelMatrix, projMatrix, viewport,
+      gluProject (objrefX, objrefY, objrefZ, modelMatrix, projMatrix, viewport,
         &winx1, &winy1, &winz1);
 
       winx = winx1+1;
       winy = winy1+1;
       winz = winz1+0.00001;     
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &objX, &objY, &objZ);
 
       glColor3fv( colours.rgb );
       textRender->RenderText( d->sdata, fontBase, 0, (float)objX, (float)objY,(float)objZ );
       winx = winx1-1;
       winy = winy1-1;
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &objX, &objY, &objZ);
 
       textRender->RenderText( d->sdata, fontBase, 0, (float)objX, (float)objY,(float)objZ );
       winx = winx1-1;
       winy = winy1+1;
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &objX, &objY, &objZ); 
 
       textRender->RenderText( d->sdata, fontBase, 0, (float)objX, (float)objY,(float)objZ );
       winx = winx1+1;
       winy = winy1-1;
-      status = gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
+      gluUnProject (winx, winy, winz, modelMatrix, projMatrix, viewport,
         &objX, &objY, &objZ);
       textRender->RenderText( d->sdata, fontBase, 0, (float)objX, (float)objY,(float)objZ );
       break;
diff --git a/src/OpenGl/OpenGl_tmesh.cxx b/src/OpenGl/OpenGl_tmesh.cxx
index b2f6b4c..24b73c5 100644
--- a/src/OpenGl/OpenGl_tmesh.cxx
+++ b/src/OpenGl/OpenGl_tmesh.cxx
@@ -434,11 +434,10 @@ static void draw_tmesh (
 {
 
   Tint              i, newList = 0;
-  tel_point         pv, pfn, pvn;
+  tel_point         pv, pvn;
   tel_colour        pfc, pvc;
   tel_texture_coord pvt;
 
-  pfn = p -> fnormals;
   pfc = p -> fcolours;
   pv  = p -> vertices;
   pvc = p -> vcolours;
diff --git a/src/OpenGl/OpenGl_togl_set_environment.cxx b/src/OpenGl/OpenGl_togl_set_environment.cxx
index bc510d6..a8ae428 100644
--- a/src/OpenGl/OpenGl_togl_set_environment.cxx
+++ b/src/OpenGl/OpenGl_togl_set_environment.cxx
@@ -34,12 +34,10 @@ call_togl_set_environment
  char * adisplay
  )
 {
-  int status;
-
   if (call_thedisplay == NULL) {
     if (strlen (adisplay) != 0)
       call_util_osd_putenv ((Tchar*)"DISPLAY", (Tchar*)adisplay);
-    status = call_tox_open_display ();
+    call_tox_open_display ();
   }
   return;
 }
diff --git a/src/OpenGl/OpenGl_togl_triedron.cxx b/src/OpenGl/OpenGl_togl_triedron.cxx
index 6dc335b..0fe1764 100644
--- a/src/OpenGl/OpenGl_togl_triedron.cxx
+++ b/src/OpenGl/OpenGl_togl_triedron.cxx
@@ -70,13 +70,12 @@ call_togl_triedron_display
 {
 
   CMN_KEY_DATA  data;
-  TStatus status;
 
 #ifdef PRINT
   printf("call_togl_triedron_display  r = %f, g = %f, b = %f", r, g, b);
   printf(", aScale = %f, aPosition = %d \n", aScale, aPosition );
 #endif
-  status = call_triedron_init (aview, aPosition, r, g, b, aScale, asWireframe);
+  call_triedron_init (aview, aPosition, r, g, b, aScale, asWireframe);
 
   /* Mise a jour de l'update_mode */
   data.ldata = TNotDone;
diff --git a/src/OpenGl/OpenGl_triedron.cxx b/src/OpenGl/OpenGl_triedron.cxx
index c0fa5ed..5460387 100644
--- a/src/OpenGl/OpenGl_triedron.cxx
+++ b/src/OpenGl/OpenGl_triedron.cxx
@@ -647,10 +647,9 @@ TStatus call_zbuffer_triedron_redraw (
   GLfloat TriedronScale = (float)0.1 ;
   GLint   TriedronPosition = 0; /* def = Aspect_TOTP_CENTER */
 
-  GLdouble L, l, rayon ;
+  GLdouble L, rayon ;
   GLdouble minUV;
   int      NbFacettes = 12;
-  double   Angle;
   GLdouble TriedronCoord[3] = { 1.0, 0.0, 0.0 };
 
   GLuint fontBase = 0;
@@ -1070,9 +1069,7 @@ TStatus call_zbuffer_triedron_redraw (
   glPopAttrib();
 
   /* fleches au bout des axes (= cones de la couleur demandee) */
-  l = L - L/4. ; /* distance a l'origine */
   rayon = L/30. ; /* rayon de la base du cone */
-  Angle = 2. * M_PI/ NbFacettes;
 
   glDeleteLists(startList, 4); 
 
diff --git a/src/PS/PS_Driver.cxx b/src/PS/PS_Driver.cxx
index 881e804..4205c8e 100644
--- a/src/PS/PS_Driver.cxx
+++ b/src/PS/PS_Driver.cxx
@@ -574,7 +574,6 @@ void PS_Driver::InitializeFontMap (const Handle(Aspect_FontMap)& aFontMap)
     TCollection_AsciiString aname;
     Aspect_FontStyle style;
     Standard_Boolean theCapsHeight;
-    Quantity_PlaneAngle theFontSlant;
     Quantity_Length theFontSize;
     Standard_ShortReal fsize;
 
@@ -583,7 +582,6 @@ void PS_Driver::InitializeFontMap (const Handle(Aspect_FontMap)& aFontMap)
       iindex = entry.Index();
       style = entry.Type();
       theFontSize = TOMILLIMETER(style.Size());
-      theFontSlant = style.Slant();
       aname = style.AliasName();
       theCapsHeight = style.CapsHeight();
       fsize = theFontSize;
diff --git a/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx b/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
index 34b36f8..318bfe1 100644
--- a/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
+++ b/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
@@ -1477,16 +1477,16 @@ Handle(Geom2d_BSplineCurve)
   }
   Handle(Geom2d_BSplineCurve) DummyC2d =
     new Geom2d_BSplineCurve(DummyPoles, DummyKnots, DummyMults, 1);
-  Standard_CString Temp = "bs2d";
 #ifdef DRAW
+  Standard_CString Temp = "bs2d";
   DrawTrSurf::Set(Temp,DummyC2d);
 #endif
 //  DrawTrSurf::Set((Standard_CString ) "bs2d",DummyC2d);
   Handle(Geom2dAdaptor_HCurve) DDD = 
     Handle(Geom2dAdaptor_HCurve)::DownCast(InitCurve2d);
   
-  Temp = "initc2d";
 #ifdef DRAW
+  Temp = "initc2d";
   DrawTrSurf::Set(Temp,DDD->ChangeCurve2d().Curve());
 #endif
 //  DrawTrSurf::Set((Standard_CString ) "initc2d",DDD->ChangeCurve2d().Curve());
diff --git a/src/ProjLib/ProjLib_Cone.cxx b/src/ProjLib/ProjLib_Cone.cxx
index 5864723..27b7f39 100644
--- a/src/ProjLib/ProjLib_Cone.cxx
+++ b/src/ProjLib/ProjLib_Cone.cxx
@@ -86,7 +86,7 @@ static gp_Pnt2d EvalPnt2d( const gp_Pnt& P, const gp_Cone& C)
   Standard_Real X = OP.Dot(gp_Vec(C.Position().XDirection()));
   Standard_Real Y = OP.Dot(gp_Vec(C.Position().YDirection()));
   Standard_Real Z = OP.Dot(gp_Vec(C.Position().Direction()));
-  Standard_Real U,V;
+  Standard_Real U;
 
   if ( Abs(X) > Precision::PConfusion() ||
        Abs(Y) > Precision::PConfusion() ) {
@@ -96,8 +96,6 @@ static gp_Pnt2d EvalPnt2d( const gp_Pnt& P, const gp_Cone& C)
     U = 0.;
   }
 
-  V = Z / Cos(C.SemiAngle());
-
   return gp_Pnt2d( U, Z);
 }
 #endif
diff --git a/src/Prs2d/Prs2d_Diameter.cxx b/src/Prs2d/Prs2d_Diameter.cxx
index f29b399..6881062 100644
--- a/src/Prs2d/Prs2d_Diameter.cxx
+++ b/src/Prs2d/Prs2d_Diameter.cxx
@@ -33,13 +33,11 @@ Prs2d_Diameter::Prs2d_Diameter( const Handle(Graphic2d_GraphicObject)& aGO,
    gp_Vec2d theVec( PTonCirc, aPnt2 );
    Standard_Real theDist = aPnt2.Distance( aPnt1 ),
                  theRad  = aCircle.Radius();
-   Standard_Boolean inside  = Standard_False;
    myInside=Standard_False;
    
    if ( theDist < theRad ) {
     aPnt1    = PTonCirc;
     theDist  = theRad;
-    inside   = Standard_True;
     myInside = Standard_True;
    }
 
diff --git a/src/Prs2d/Prs2d_Radius.cxx b/src/Prs2d/Prs2d_Radius.cxx
index 65c94ca..db1843a 100644
--- a/src/Prs2d/Prs2d_Radius.cxx
+++ b/src/Prs2d/Prs2d_Radius.cxx
@@ -33,12 +33,10 @@ Prs2d_Radius::Prs2d_Radius( const Handle(Graphic2d_GraphicObject) & aGO,
 //   gp_Vec2d theVec( PTonCirc, aPnt2 );
    Standard_Real theDist = aPnt2.Distance( aPnt1 );
    Standard_Real theRad  = aCircle.Radius();
-   Standard_Boolean inside  = Standard_False;
 
    if ( theDist < theRad ) {
     aPnt1 = PTonCirc;
     theDist = theRad;
-    inside = Standard_True;
    }
 
    Standard_Real X1, Y1, X2, Y2;
diff --git a/src/RWHeaderSection/RWHeaderSection_RWFileDescription.cxx b/src/RWHeaderSection/RWHeaderSection_RWFileDescription.cxx
index af78dea..3d2ee40 100644
--- a/src/RWHeaderSection/RWHeaderSection_RWFileDescription.cxx
+++ b/src/RWHeaderSection/RWHeaderSection_RWFileDescription.cxx
@@ -39,8 +39,7 @@ void RWHeaderSection_RWFileDescription::ReadStep
 	// --- own field : implementationLevel ---
 
 	Handle(TCollection_HAsciiString) aImplementationLevel;
-	Standard_Boolean stat2;
-	stat2 = data->ReadString (num,2,"implementation_level",ach,aImplementationLevel);
+	data->ReadString (num,2,"implementation_level",ach,aImplementationLevel);
 
 	//--- Initialisation of the read entity ---
 
diff --git a/src/RWHeaderSection/RWHeaderSection_RWFileName.cxx b/src/RWHeaderSection/RWHeaderSection_RWFileName.cxx
index d36eed6..6ebe1ce 100644
--- a/src/RWHeaderSection/RWHeaderSection_RWFileName.cxx
+++ b/src/RWHeaderSection/RWHeaderSection_RWFileName.cxx
@@ -20,14 +20,12 @@ void RWHeaderSection_RWFileName::ReadStep
 	// --- own field : name ---
 
 	Handle(TCollection_HAsciiString) aName;
-	Standard_Boolean stat1;
-	stat1 = data->ReadString (num,1,"name",ach,aName);
+	data->ReadString (num,1,"name",ach,aName);
 
 	// --- own field : timeStamp ---
 
 	Handle(TCollection_HAsciiString) aTimeStamp;
-	Standard_Boolean stat2;
-	stat2 = data->ReadString (num,2,"time_stamp",ach,aTimeStamp);
+	data->ReadString (num,2,"time_stamp",ach,aTimeStamp);
 
 	// --- own field : author ---
 
@@ -70,20 +68,17 @@ void RWHeaderSection_RWFileName::ReadStep
 	// --- own field : preprocessorVersion ---
 
 	Handle(TCollection_HAsciiString) aPreprocessorVersion;
-	Standard_Boolean stat5;
-	stat5 = data->ReadString (num,5,"preprocessor_version",ach,aPreprocessorVersion);
+	data->ReadString (num,5,"preprocessor_version",ach,aPreprocessorVersion);
 
 	// --- own field : originatingSystem ---
 
 	Handle(TCollection_HAsciiString) aOriginatingSystem;
-	Standard_Boolean stat6;
-	stat6 = data->ReadString (num,6,"originating_system",ach,aOriginatingSystem);
+	data->ReadString (num,6,"originating_system",ach,aOriginatingSystem);
 
 	// --- own field : authorisation ---
 
 	Handle(TCollection_HAsciiString) aAuthorisation;
-	Standard_Boolean stat7;
-	stat7 = data->ReadString (num,7,"authorisation",ach,aAuthorisation);
+	data->ReadString (num,7,"authorisation",ach,aAuthorisation);
 
 	//--- Initialisation of the read entity ---
 
diff --git a/src/RWStepAP214/RWStepAP214_RWAppliedDocumentReference.cxx b/src/RWStepAP214/RWStepAP214_RWAppliedDocumentReference.cxx
index a08aa9d..e60fcec 100644
--- a/src/RWStepAP214/RWStepAP214_RWAppliedDocumentReference.cxx
+++ b/src/RWStepAP214/RWStepAP214_RWAppliedDocumentReference.cxx
@@ -30,8 +30,7 @@ void  RWStepAP214_RWAppliedDocumentReference::ReadStep
   // --- inherited field : source ---
 
   Handle(TCollection_HAsciiString) asource;
-  Standard_Boolean stat2;
-  stat2 = data->ReadString (num,2,"source",ach,asource);
+  data->ReadString (num,2,"source",ach,asource);
   
   
   // --- own field : items ---
diff --git a/src/RWStepAP214/RWStepAP214_RWAutoDesignDocumentReference.cxx b/src/RWStepAP214/RWStepAP214_RWAutoDesignDocumentReference.cxx
index 249ebaa..2299376 100644
--- a/src/RWStepAP214/RWStepAP214_RWAutoDesignDocumentReference.cxx
+++ b/src/RWStepAP214/RWStepAP214_RWAutoDesignDocumentReference.cxx
@@ -30,8 +30,7 @@ void  RWStepAP214_RWAutoDesignDocumentReference::ReadStep
 	// --- inherited field : source ---
 
 	Handle(TCollection_HAsciiString) asource;
-	Standard_Boolean stat2;
-	stat2 = data->ReadString (num,2,"source",ach,asource);
+	data->ReadString (num,2,"source",ach,asource);
 
 
         // --- own field : items ---
diff --git a/src/RWStepDimTol/RWStepDimTol_RWCommonDatum.cxx b/src/RWStepDimTol/RWStepDimTol_RWCommonDatum.cxx
index 936cc60..15171ec 100644
--- a/src/RWStepDimTol/RWStepDimTol_RWCommonDatum.cxx
+++ b/src/RWStepDimTol/RWStepDimTol_RWCommonDatum.cxx
@@ -35,13 +35,9 @@ void RWStepDimTol_RWCommonDatum::ReadStep (const Handle(StepData_StepReaderData)
   data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
 
   Handle(TCollection_HAsciiString) aShapeAspect_Description;
-  Standard_Boolean hasShapeAspect_Description = Standard_True;
   if ( data->IsParamDefined (num,2) ) {
     data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
   }
-  else {
-    hasShapeAspect_Description = Standard_False;
-  }
 
   Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
   data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
diff --git a/src/RWStepRepr/RWStepRepr_RWCompositeShapeAspect.cxx b/src/RWStepRepr/RWStepRepr_RWCompositeShapeAspect.cxx
index a77127b..69c925a 100644
--- a/src/RWStepRepr/RWStepRepr_RWCompositeShapeAspect.cxx
+++ b/src/RWStepRepr/RWStepRepr_RWCompositeShapeAspect.cxx
@@ -34,13 +34,9 @@ void RWStepRepr_RWCompositeShapeAspect::ReadStep (const Handle(StepData_StepRead
   data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
 
   Handle(TCollection_HAsciiString) aShapeAspect_Description;
-  Standard_Boolean hasShapeAspect_Description = Standard_True;
   if ( data->IsParamDefined (num,2) ) {
     data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
   }
-  else {
-    hasShapeAspect_Description = Standard_False;
-  }
 
   Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
   data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
diff --git a/src/RWStepRepr/RWStepRepr_RWDerivedShapeAspect.cxx b/src/RWStepRepr/RWStepRepr_RWDerivedShapeAspect.cxx
index a078eba..a5efeb1 100644
--- a/src/RWStepRepr/RWStepRepr_RWDerivedShapeAspect.cxx
+++ b/src/RWStepRepr/RWStepRepr_RWDerivedShapeAspect.cxx
@@ -34,13 +34,9 @@ void RWStepRepr_RWDerivedShapeAspect::ReadStep (const Handle(StepData_StepReader
   data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
 
   Handle(TCollection_HAsciiString) aShapeAspect_Description;
-  Standard_Boolean hasShapeAspect_Description = Standard_True;
   if ( data->IsParamDefined (num,2) ) {
     data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
   }
-  else {
-    hasShapeAspect_Description = Standard_False;
-  }
 
   Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
   data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
diff --git a/src/RWStepRepr/RWStepRepr_RWExtension.cxx b/src/RWStepRepr/RWStepRepr_RWExtension.cxx
index dbf691a..03ad755 100644
--- a/src/RWStepRepr/RWStepRepr_RWExtension.cxx
+++ b/src/RWStepRepr/RWStepRepr_RWExtension.cxx
@@ -34,13 +34,9 @@ void RWStepRepr_RWExtension::ReadStep (const Handle(StepData_StepReaderData)& da
   data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
 
   Handle(TCollection_HAsciiString) aShapeAspect_Description;
-  Standard_Boolean hasShapeAspect_Description = Standard_True;
   if ( data->IsParamDefined (num,2) ) {
     data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
   }
-  else {
-    hasShapeAspect_Description = Standard_False;
-  }
 
   Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
   data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
diff --git a/src/Select3D/Select3D_SensitiveCircle.cxx b/src/Select3D/Select3D_SensitiveCircle.cxx
index 21b1da0..3c0e539 100644
--- a/src/Select3D/Select3D_SensitiveCircle.cxx
+++ b/src/Select3D/Select3D_SensitiveCircle.cxx
@@ -249,9 +249,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 { 
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   for(Standard_Integer j=1;j<=mynbpoints;j++){
diff --git a/src/Select3D/Select3D_SensitiveCurve.cxx b/src/Select3D/Select3D_SensitiveCurve.cxx
index b338ee6..a0aca12 100644
--- a/src/Select3D/Select3D_SensitiveCurve.cxx
+++ b/src/Select3D/Select3D_SensitiveCurve.cxx
@@ -113,9 +113,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 { 
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   for(Standard_Integer j=0;j<mynbpoints;j++){
diff --git a/src/Select3D/Select3D_SensitiveFace.cxx b/src/Select3D/Select3D_SensitiveFace.cxx
index 0de8d06..900dd61 100644
--- a/src/Select3D/Select3D_SensitiveFace.cxx
+++ b/src/Select3D/Select3D_SensitiveFace.cxx
@@ -190,9 +190,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 { 
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   for(Standard_Integer j=1;j<=mynbpoints;j++){
diff --git a/src/Select3D/Select3D_SensitivePoint.cxx b/src/Select3D/Select3D_SensitivePoint.cxx
index 7c0115a..a4640e9 100644
--- a/src/Select3D/Select3D_SensitivePoint.cxx
+++ b/src/Select3D/Select3D_SensitivePoint.cxx
@@ -103,9 +103,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 { 
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   Standard_Integer RES = aClassifier2d.SiDans(myprojpt);
diff --git a/src/Select3D/Select3D_SensitiveSegment.cxx b/src/Select3D/Select3D_SensitiveSegment.cxx
index c73c9ee..c55e6e9 100644
--- a/src/Select3D/Select3D_SensitiveSegment.cxx
+++ b/src/Select3D/Select3D_SensitiveSegment.cxx
@@ -154,9 +154,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 { 
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   Standard_Integer RES = aClassifier2d.SiDans(myprojstart);
diff --git a/src/Select3D/Select3D_SensitiveTriangle.cxx b/src/Select3D/Select3D_SensitiveTriangle.cxx
index 2fa822a..b1a4a2b 100644
--- a/src/Select3D/Select3D_SensitiveTriangle.cxx
+++ b/src/Select3D/Select3D_SensitiveTriangle.cxx
@@ -123,9 +123,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 { 
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   for(Standard_Integer i=0;i<=2;i++){
diff --git a/src/Select3D/Select3D_SensitiveTriangulation.cxx b/src/Select3D/Select3D_SensitiveTriangulation.cxx
index 5f33b3a..377c9ad 100644
--- a/src/Select3D/Select3D_SensitiveTriangulation.cxx
+++ b/src/Select3D/Select3D_SensitiveTriangulation.cxx
@@ -351,9 +351,6 @@ Matches (const TColgp_Array1OfPnt2d& aPoly,
 {
   Standard_Real Umin,Vmin,Umax,Vmax;
   aBox.Get(Umin,Vmin,Umax,Vmax);
-  Standard_Real Tolu,Tolv;
-  Tolu = 1e-7;
-  Tolv = 1e-7;
   CSLib_Class2d aClassifier2d(aPoly,aTol,aTol,Umin,Vmin,Umax,Vmax);
 
   for(Standard_Integer j=1;j<=myNodes2d.Length();j++){
diff --git a/src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx b/src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx
index 59cd0ff..eb639c6 100644
--- a/src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx
+++ b/src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx
@@ -210,8 +210,7 @@ ShapeAnalysis_FreeBounds::ShapeAnalysis_FreeBounds(const TopoDS_Shape& shape,
     aBox.SetGap(tolerance);
     aTreeFiller.Add(inbW, aBox);
   }
-  Standard_Integer nbFill;
-  nbFill = aTreeFiller.Fill();
+  aTreeFiller.Fill();
   Standard_Integer nsel;
   
   ShapeAnalysis_Edge sae; //szv#4:S4163:12Mar99 moved
@@ -353,7 +352,6 @@ static void SplitWire(const TopoDS_Wire& wire,
       Standard_Boolean SearchBackward = Standard_True;
 
       while (Standard_True) {
-	Standard_Integer ei = ces.Last(); //ei-edge index, number of current edge analyzed for connection
 	Standard_Boolean found;
 	TopoDS_Edge edge;
 	TopoDS_Vertex lvertex;
@@ -393,7 +391,6 @@ static void SplitWire(const TopoDS_Wire& wire,
     
 	//searching for connection among free edges
 	found = Standard_False;
-	ei = ces.Last();
 	edge = sewd->Edge (ces.Last());
 	lvertex = sae.LastVertex (edge);
 	lpoint = BRep_Tool::Pnt (lvertex);
diff --git a/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx b/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
index e3c4ec1..42bb714 100644
--- a/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
+++ b/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
@@ -460,7 +460,6 @@ void ShapeUpgrade_WireDivide::Perform ()
       Standard_Integer numE =0;
       gp_Pnt pntV1 = BRep_Tool::Pnt(V1);
       //gp_Pnt pntV2 = BRep_Tool::Pnt(V2); // pntV2 not used - see below (skl)
-      Standard_Real V1Tol = LimitTolerance( BRep_Tool::Tolerance(V1) );
       //Standard_Real V2Tol = LimitTolerance( BRep_Tool::Tolerance(V2) ); // V2Tol not used - see below (skl)
       
       Handle(ShapeUpgrade_FixSmallCurves) FixSmallCurveTool = GetFixSmallCurveTool(); //gka Precision
@@ -570,7 +569,6 @@ void ShapeUpgrade_WireDivide::Perform ()
 	  if(icurv != nbc)  {
 	    B.MakeVertex (V, P, TolEdge); //tolerance of the edge
 	    pntV1 = P;
-	    V1Tol = LimitTolerance( TolEdge );
 	  }
 	  else V = V2;
 	 // else  V2;
diff --git a/src/StlTransfer/StlTransfer.cxx b/src/StlTransfer/StlTransfer.cxx
index b974b66..d73b2da 100644
--- a/src/StlTransfer/StlTransfer.cxx
+++ b/src/StlTransfer/StlTransfer.cxx
@@ -105,7 +105,6 @@ void StlTransfer::BuildIncrementalMesh (const TopoDS_Shape&  Shape,
     Standard_ConstructionError::Raise ("StlTransfer::BuildIncrementalMesh");
     }
   
-  Standard_Integer NbVertices, NbTriangles;
   BRepMesh::Mesh (Shape, Deflection);
   for (TopExp_Explorer itf(Shape,TopAbs_FACE); itf.More(); itf.Next()) {
     TopoDS_Face face = TopoDS::Face(itf.Current());
@@ -134,7 +133,7 @@ void StlTransfer::BuildIncrementalMesh (const TopoDS_Shape&  Shape,
       gp_Pnt p = thePoints.Value(i);
       p.Transform(Loc.Transformation());
       p.Coord (X1, Y1, Z1);
-      NbVertices = Mesh->AddVertex (X1, Y1, Z1);
+      Mesh->AddVertex (X1, Y1, Z1);
     }
     try {
       OCC_CATCH_SIGNALS
@@ -167,7 +166,7 @@ void StlTransfer::BuildIncrementalMesh (const TopoDS_Shape&  Shape,
 	    A=V1;B=V2;C=V3;
 	  }
 	}
-	NbTriangles = Mesh->AddTriangle (A, B, C, average.X(), average.Y(), average.Z());
+	Mesh->AddTriangle (A, B, C, average.X(), average.Y(), average.Z());
       }
     }
     catch(Standard_Failure)
diff --git a/src/TNaming/TNaming.cxx b/src/TNaming/TNaming.cxx
index 2203fa9..9ea1979 100644
--- a/src/TNaming/TNaming.cxx
+++ b/src/TNaming/TNaming.cxx
@@ -267,18 +267,17 @@ void TNaming::Update(const TDF_Label& L,
   L.Root().FindAttribute(TNaming_UsedShapes::GetID(),US);
   TNaming_DataMapOfShapePtrRefShape& amap = US->Map();
 
-  Standard_Boolean Change = Standard_False;
   for (TNaming_Iterator it(L); it.More(); it.Next()) {
     if (!it.OldShape().IsNull()) {
       const TopoDS_Shape& S = it.OldShape();
       if (!M.IsBound(S))
-	if (Rebuild (S,M)) Change = Standard_True;
+	Rebuild (S,M);
       SubstituteShape(S,M(S),amap);
     }
     if (!it.NewShape().IsNull()) {
       const TopoDS_Shape& S = it.NewShape();
       if (!M.IsBound(S)) 
-	if (Rebuild (S,M)) Change = Standard_True;
+	Rebuild (S,M);
       SubstituteShape(S,M(S),amap);
     }
   }
diff --git a/src/TPrsStd/TPrsStd_ConstraintTools.cxx b/src/TPrsStd/TPrsStd_ConstraintTools.cxx
index 058728a..22a30e9 100644
--- a/src/TPrsStd/TPrsStd_ConstraintTools.cxx
+++ b/src/TPrsStd/TPrsStd_ConstraintTools.cxx
@@ -1772,7 +1772,6 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
   TCollection_ExtendedString txt;
   Handle(AIS_LengthDimension) ais;
   //Handle(AIS_Drawer) aDrawer;
-  Standard_Boolean NotNull = Standard_False;
 
   if (nbgeom == 1) {
       
@@ -1780,7 +1779,6 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
   
     if (!anAIS.IsNull()) {
       ais = Handle(AIS_LengthDimension)::DownCast(anAIS);
-      NotNull = Standard_True; 
     }
    
     if (S1.ShapeType() == TopAbs_FACE && S2.ShapeType() == TopAbs_FACE) {
@@ -1894,7 +1892,6 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
       }
     }
     S2 = nearest;
-    if( !anAIS.IsNull() ) NotNull = Standard_True; 
     ais = Handle(AIS_LengthDimension)::DownCast(anAIS);
     if (ais.IsNull()) {
       ais = new AIS_LengthDimension (S1,S2,aplane,val1,txt);
diff --git a/src/TestTopOpe/TestTopOpe_CORCommands.cxx b/src/TestTopOpe/TestTopOpe_CORCommands.cxx
index 35a5891..5f891ff 100644
--- a/src/TestTopOpe/TestTopOpe_CORCommands.cxx
+++ b/src/TestTopOpe/TestTopOpe_CORCommands.cxx
@@ -111,10 +111,7 @@ static void FUN_test_draw(TCollection_AsciiString aa,
   Standard_Boolean coldef = Standard_False;
   TopExp_Explorer ex(F,TopAbs_EDGE);
   Draw_Color col;
-#ifdef DEB
-  Draw_Color savecol =
-#endif
-                       DrawTrSurf_CurveColor(Draw_Color(Draw_rouge));
+  DrawTrSurf_CurveColor(Draw_Color(Draw_rouge));
   for (; ex.More(); ex.Next()) 
     if (E.IsEqual(ex.Current())) 
       {col = DBRep_ColorOrientation(ex.Current().Orientation()); 
@@ -778,10 +775,7 @@ static Standard_Integer normal(Draw_Interpretor& di, Standard_Integer n, const c
 #endif
   Standard_Real dist=0.; gp_Pnt2d uv; Standard_Boolean ok = FUN_tool_projPonF(p,f,uv,dist);
   if (!ok) {di<<"projection failed"<<"\n"; return 1;}
-#ifdef DEB
-  gp_Vec ngf =
-#endif
-               FUN_tool_nggeomF(uv,f);
+  FUN_tool_nggeomF(uv,f);
   TCollection_AsciiString aa("ngS"); 
 #ifdef DRAW
   FUN_tool_draw(aa,p,ngf,length);
@@ -810,7 +804,6 @@ static Standard_Integer curvature(Draw_Interpretor& di, Standard_Integer n, cons
   
   Standard_Real tol = Precision::Confusion();
   BRepLProp_SLProps props(BS,2,tol);
-  Standard_Real Cur1=0., Cur2=0.;
   gp_Dir Norm,D1,D2;  
   for (Standard_Integer i = 1; i <= npnts; i++) {
     gp_Pnt p = intcs.Point(i);
@@ -821,14 +814,11 @@ static Standard_Integer curvature(Draw_Interpretor& di, Standard_Integer n, cons
     if (!curdef) {di<<"!IsCurvatureDefined"<<"\n"; continue;}
     Standard_Boolean umbilic = props.IsUmbilic();
     if (umbilic) { 
-      Cur1 = Cur2 = props.MeanCurvature();
       D1 = gp_Dir(0,0,1);
       D2 = gp_Dir(0,1,0);   
       di<<"umbilic";
     }
     else {
-      Cur1 = props.MaxCurvature();
-      Cur2 = props.MinCurvature();
       props.CurvatureDirections(D1,D2);
     }
     Norm = gp_Dir(D1^D2); 
diff --git a/src/TestTopOpe/TestTopOpe_DSACommands.cxx b/src/TestTopOpe/TestTopOpe_DSACommands.cxx
index a91094b..b28fb44 100644
--- a/src/TestTopOpe/TestTopOpe_DSACommands.cxx
+++ b/src/TestTopOpe/TestTopOpe_DSACommands.cxx
@@ -99,10 +99,9 @@ Standard_Integer DSACCESSCOMMANDS(Draw_Interpretor& interpretor,Standard_Integer
 	S = DSA.Merge(TopAbs_IN, TopAbs_IN);
       DBRep::Set(a[2], S);
       TopOpeBRepDS_DataStructure& DS = DSA.DS()->ChangeDS();
-      Standard_Integer i,j,nbsh = DS.NbShapes();
+      Standard_Integer i,nbsh = DS.NbShapes();
       for(i = 1;i<=nbsh;i++) {
 	TopTools_ListOfShape& los = DS.ChangeShapeSameDomain(i);
-	j = los.Extent();
 #ifdef DEB
 	Standard_Integer iref =
 #endif
diff --git a/src/TestTopOpe/TestTopOpe_HDSCommands.cxx b/src/TestTopOpe/TestTopOpe_HDSCommands.cxx
index 3f7ae9e..8d03b33 100644
--- a/src/TestTopOpe/TestTopOpe_HDSCommands.cxx
+++ b/src/TestTopOpe/TestTopOpe_HDSCommands.cxx
@@ -899,11 +899,10 @@ void AddShapeKI
 (TColStd_ListOfInteger& LOK,TColStd_ListOfInteger& LOI,
  const TopOpeBRepDS_Kind K,const Standard_Integer I)
 {
-  TopAbs_ShapeEnum TS;
   Standard_Boolean isshape,isgeome; isshape = isgeome = Standard_False;
   isshape = TopOpeBRepDS::IsTopology(K);
-  if (isshape) TS = TopOpeBRepDS::KindToShape(K);
-  else isgeome = TopOpeBRepDS::IsGeometry(K);
+  if (!isshape)
+    isgeome = TopOpeBRepDS::IsGeometry(K);
   
   if (LOK.IsEmpty() && LOI.IsEmpty()) { 
     LOK.Append((Standard_Integer)K); LOI.Append(I); 
@@ -1396,7 +1395,7 @@ Standard_Integer tdsri(Draw_Interpretor& di,Standard_Integer na_in,const char**
   if ( strcasecmp(a[i1arg + 2],"i") ) return 0;
   Standard_Integer ii = atoi(a[i1arg + 3]);  
 //  Standard_Integer ia,is,ig;
-  Standard_Integer is,ig;
+  Standard_Integer is;
   if ( Tpar.isshap() ) {
     is = atoi(a[i1arg + 1]);
     const TopoDS_Shape& s = GetShape(is,Tpar.TS()); if (s.IsNull()) return 0;
@@ -1410,9 +1409,6 @@ Standard_Integer tdsri(Draw_Interpretor& di,Standard_Integer na_in,const char**
       else it.Next();
     }
   }
-  else if ( Tpar.isgeom() ) { 
-    ig = atoi(a[i1arg + 1]);
-  }
   return 0;
 } // tdsri
 
diff --git a/src/TestTopOpe/TestTopOpe_OtherCommands.cxx b/src/TestTopOpe/TestTopOpe_OtherCommands.cxx
index 6dc7bef..8e58e4a 100644
--- a/src/TestTopOpe/TestTopOpe_OtherCommands.cxx
+++ b/src/TestTopOpe/TestTopOpe_OtherCommands.cxx
@@ -188,13 +188,11 @@ Standard_Integer MKSOLSHE(Draw_Interpretor&, Standard_Integer narg, const char**
 
   // take all the SHELL args, place them in the solid <sol>
   TopoDS_Solid sol; BB.MakeSolid(sol);
-  Standard_Boolean yashell = Standard_False;
   for (i = i1; i < i2; i++) {
     const TopoDS_Shape& S = DBRep::Get(a[i]);
     if (S.IsNull()) continue;
     if (S.ShapeType() == TopAbs_SHELL) {
       BB.Add(sol,S);
-      yashell = Standard_True;
     }
   }
 
@@ -219,7 +217,7 @@ Standard_Integer MKSOLSHE(Draw_Interpretor&, Standard_Integer narg, const char**
 Standard_Integer GRILLE(Draw_Interpretor& di, Standard_Integer narg, const char** a)
 {
   if (narg != 10) return 1;
-  Standard_Real xmin,ymin,zmin,xmax,ymax,zmax,dx,dy,dz;
+  Standard_Real xmin,ymin,zmin,xmax,ymax,zmax,dx,dy;
   Standard_Integer nbx,nby,nbz;
   xmin = atof(a[1]);
   ymin = atof(a[2]);
@@ -234,7 +232,6 @@ Standard_Integer GRILLE(Draw_Interpretor& di, Standard_Integer narg, const char*
     return 1;
   if(nbx) dx = (xmax-xmin)/nbx; else dx=0;
   if(nby) dy = (ymax-ymin)/nby; else dy=0;
-  if(nbz) dz = (zmax-zmin)/nbz; else dz=0;
   di<<"compound CE"<<"\n";
   for(Standard_Real x=xmin; x<xmax; x+=dx) { 
     for(Standard_Real y=ymin; y<ymax; y+=dx) { 
diff --git a/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx b/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
index f31f127..d64483c 100644
--- a/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
@@ -112,8 +112,6 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
     const TopOpeBRep_Point2d P2D = myPEI->Point();
     Standard_Real par1 = P2D.Parameter(1);
     Standard_Real par2 = P2D.Parameter(2);
-    Standard_Integer if1 = 0; if ( ! myF1.IsNull() ) if1 = myPDS->AddShape(myF1,1);
-    Standard_Integer if2 = 0; if ( ! myF2.IsNull() ) if2 = myPDS->AddShape(myF2,2);
 
 #ifdef DEB
     Standard_Boolean pointofsegment =
diff --git a/src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller.cxx b/src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller.cxx
index 6636e54..c7bdcf0 100644
--- a/src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller.cxx
@@ -83,9 +83,6 @@ void TopOpeBRep_FaceEdgeFiller::Insert
                         FEINT.State();
     Standard_Real parE = FEINT.Parameter();
 
-#ifdef DEB
-    TopOpeBRepDS_Transition TFF =
-#endif
                                   FEINT.Transition(1,EEori); //  EEori bidon = EXTERNAL
     TopOpeBRepDS_Transition TEE = FEINT.Transition(2,FFori);
     TEE.Index(FFindex);
diff --git a/src/TopOpeBRep/TopOpeBRep_FaceEdgeIntersector.cxx b/src/TopOpeBRep/TopOpeBRep_FaceEdgeIntersector.cxx
index 6a958c3..367775c 100644
--- a/src/TopOpeBRep/TopOpeBRep_FaceEdgeIntersector.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_FaceEdgeIntersector.cxx
@@ -88,10 +88,7 @@ void TopOpeBRep_FaceEdgeIntersector::Perform(const TopoDS_Shape& SF,
   TopLoc_Location loc;
   const Handle(Geom_Curve) C = BRep_Tool::Curve(myEdge,loc,f,l);
   
-#ifdef DEB
-  gp_Trsf Tao1 =
-#endif
-                 loc.Transformation();
+  loc.Transformation();
   Handle(Geom_Geometry) GGao1 = C->Transformed(loc.Transformation());
   Handle(Geom_Curve)* PGCao1 = (Handle(Geom_Curve)*)&GGao1;
   myCurve.Load(*PGCao1,f,l);
diff --git a/src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx b/src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
index 1730b6c..078c51b 100644
--- a/src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
@@ -767,13 +767,13 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
       Standard_Integer iOOFace = myDS->Shape(OOFace);
 
       TopoDS_Edge edge,OOedge; Standard_Integer SIedgeIndex,OOedgeIndex;
-      Standard_Real paredge,OOparedge;
+      Standard_Real paredge;
       Standard_Integer onbound;
       if (SIErest) 
 	{edge = Erest;  SIedgeIndex = iErest; paredge = parRest; onbound = obRest; 
-	 OOedge = OOE;  OOedgeIndex = iOO;    OOparedge = OOpar;} 
+	 OOedge = OOE;  OOedgeIndex = iOO;    } 
       else         
-	{OOedge = Erest;OOedgeIndex = iErest; OOparedge = parRest;   onbound = obOO;
+	{OOedge = Erest;OOedgeIndex = iErest; onbound = obOO;
 	 edge = OOE;    SIedgeIndex = iOO;    paredge = OOpar;}
       
       // PVIndex :
@@ -807,7 +807,6 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
       const TopOpeBRepDS_Transition& llt2 = FaceFaceTransition(2);
       TopOpeBRepDS_Transition Trans = (ShapeIndex == 1)? llt1 : llt2;
       Standard_Boolean TransUNK = Trans.IsUnknown();
-      TopAbs_Orientation Transori; if (!TransUNK) Transori = Trans.Orientation(TopAbs_IN); 
       
       TopOpeBRepDS_Transition transEdge; Standard_Boolean Tunk = Standard_True;
       if (!TransUNK) { //xpu281098 PRO12875(edge9,OOface11)
diff --git a/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx b/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
index fcbbeb7..dcd00d1 100644
--- a/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
@@ -1440,13 +1440,12 @@ static Standard_Boolean IsPointOK(const gp_Pnt&            theTestPnt,
   Extrema_ExtPS extPS(theTestPnt,theTestSurface,ExtTol,ExtTol);
   if( extPS.IsDone() && extPS.NbExt() > 0 )
     {
-      Standard_Integer i = 0, minext = 1;
+      Standard_Integer i = 0;
       Standard_Real MinDist2 = 1.e+200;
       for(i = 1; i <= extPS.NbExt(); i++)
 	{
 	  if( extPS.SquareDistance(i) < MinDist2 )
 	    {
-	      minext = i;
 	      MinDist2 = extPS.SquareDistance(i);
 	    }
 	}
diff --git a/src/TopOpeBRep/TopOpeBRep_kpart.cxx b/src/TopOpeBRep/TopOpeBRep_kpart.cxx
index ef97375..3f3112d 100644
--- a/src/TopOpeBRep/TopOpeBRep_kpart.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_kpart.cxx
@@ -332,7 +332,6 @@ Standard_Boolean FUNBREP_topowalki
     lastinin = lastinin && (lasttransLine.After() == TopAbs_IN);
   }
   
-  Standard_Boolean LIdefinie = Standard_False;
   Standard_Boolean LITdefinie = Standard_False;
   Standard_Boolean LITonsort = Standard_False;
   TopOpeBRepDS_Transition LIT;
@@ -340,7 +339,6 @@ Standard_Boolean FUNBREP_topowalki
   Standard_Boolean nointerf = DSCIL.IsEmpty();
   if (!nointerf) {
     I = DSCIL.Last();
-    LIdefinie = Standard_True;
     LIT = I->Transition();
     LITdefinie = ! LIT.IsUnknown();
     if (LITdefinie) LITonsort = (LIT.Orientation(TopAbs_OUT) == TopAbs_FORWARD);
@@ -612,8 +610,6 @@ Standard_Boolean FUNBREP_topogline
   }
   Standard_Boolean onsort = (transLine.Orientation(TopAbs_OUT) == TopAbs_FORWARD);
   Standard_Boolean lastdefinie = ! lasttransLine.IsUnknown();
-  Standard_Boolean lastonsort = Standard_False;
-  if (lastdefinie) lastonsort = (lasttransLine.Orientation(TopAbs_OUT) == TopAbs_FORWARD);
 
   Standard_Boolean LITdefinie = Standard_False;
   Standard_Boolean LITonsort = Standard_False;
diff --git a/src/TopOpeBRep/TopOpeBRep_vpr.cxx b/src/TopOpeBRep/TopOpeBRep_vpr.cxx
index e04e16e..5403ee5 100644
--- a/src/TopOpeBRep/TopOpeBRep_vpr.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_vpr.cxx
@@ -990,15 +990,6 @@ void TopOpeBRep_FacesFiller::ProcessVPonR
     }
   }//myLineINL
 
-#ifdef DEB
-  Standard_Integer SEPI = (EPIfound) ? IEPI->Support() : 0;
-#endif
-  TopOpeBRepDS_Kind SKEPI; if(EPIfound) SKEPI=IEPI->SupportType();
-#ifdef DEB
-  Standard_Integer SCPI = (CPIfound) ? ICPI->Support() : 0;
-#endif
-  TopOpeBRepDS_Kind SKCPI; if(CPIfound) SKCPI=ICPI->SupportType();
-
   // Gfound = VP corresponds with an existing geometry of ShapeIndex
   Standard_Boolean Gfound = ( EPIfound || CPIfound );  
 #ifdef DEB
diff --git a/src/TopOpeBRep/TopOpeBRep_vprclo.cxx b/src/TopOpeBRep/TopOpeBRep_vprclo.cxx
index bdc3093..43071b5 100644
--- a/src/TopOpeBRep/TopOpeBRep_vprclo.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_vprclo.cxx
@@ -186,15 +186,13 @@ void TopOpeBRep_FacesFiller::ProcessVPonclosingR(const TopOpeBRep_VPointInter& V
   
   // dummy if !<hasOOedge>
   Standard_Integer OOedgeIndex = 0; 
-  Standard_Boolean OOclosing,OOisrest; OOclosing = OOisrest = Standard_False;
   TopoDS_Edge OOedge;
   if ( hasOOedge ) {
     TopoDS_Shape OOe;
     if (on2edges) OOe = VP.Edge(OOShapeIndex);
     else          OOe = VP.EdgeON(OOShapeIndex);
     OOedge = TopoDS::Edge(OOe);
-    OOisrest = myDS->IsSectionEdge(OOedge);
-    OOclosing = TopOpeBRepTool_ShapeTool::Closed(OOedge,OOFace);
+    TopOpeBRepTool_ShapeTool::Closed(OOedge,OOFace);
     if (myDS->HasShape(OOedge)) OOedgeIndex = myDS->Shape(OOedge);
     else                        OOedgeIndex = myDS->AddShape(OOedge,OOShapeIndex);
   }
diff --git a/src/TopOpeBRep/TopOpeBRep_vprdeg.cxx b/src/TopOpeBRep/TopOpeBRep_vprdeg.cxx
index 0754bfe..a86f855 100644
--- a/src/TopOpeBRep/TopOpeBRep_vprdeg.cxx
+++ b/src/TopOpeBRep/TopOpeBRep_vprdeg.cxx
@@ -1021,13 +1021,12 @@ static Standard_Integer FUN_putInterfonDegenEd
     if (rkv != rkdg) {TopoDS_Vertex tmp = v; v = ov; ov = tmp; rkv = rkdg;} // ensure v is vertex of dge
   }
 
-  Standard_Boolean setrest = Standard_False;
   Standard_Integer mkt = 0; Standard_Real par1 = 0.0,par2 = 0.0;
   if (on3) {
     TopoDS_Edge ei = (rki == 1) ? TopoDS::Edge(VP.ArcOnS1()) : TopoDS::Edge(VP.ArcOnS2());
     Standard_Real pari = (rki == 1) ? VP.ParameterOnArc1() : VP.ParameterOnArc2();
     // if okrest, ei interfers in the compute of transitions for dge
-    setrest = mktdg.SetRest(pari,ei);
+    mktdg.SetRest(pari,ei);
     ok = mktdg.MkTonE(ei,mkt, par1,par2);  
     if ((!ok) || (mkt == NOI)) return NOI;      
     OOEi = ei; paronOOEi = pari; hasOOEi = Standard_True;
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_BuildEdges.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_BuildEdges.cxx
index b260dd7..8dd3ec0 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_BuildEdges.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_BuildEdges.cxx
@@ -77,7 +77,6 @@ void TopOpeBRepBuild_Builder::BuildEdges(const Handle(TopOpeBRepDS_HDataStructur
   TopOpeBRepDS_DataStructure& BDS = HDS->ChangeDS();
 
   myNewEdges.Clear();
-  Standard_Integer nc = BDS.NbCurves();
   TopOpeBRepDS_CurveExplorer cex;
 
   Standard_Integer ick = 0;
@@ -95,7 +94,6 @@ void TopOpeBRepBuild_Builder::BuildEdges(const Handle(TopOpeBRepDS_HDataStructur
     BDS.ChangeNbCurves(ick-1);
   }
 
-  nc = BDS.NbCurves();
   for (cex.Init(BDS,Standard_False); cex.More(); cex.Next()) {
     Standard_Integer ic = cex.Index();
     Standard_Integer im = cex.Curve(ic).Mother();
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx
index b1f0dea..f9905fb 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx
@@ -760,7 +760,6 @@ void TopOpeBRepBuild_Builder1::GFillEdgeSameDomWES(const TopoDS_Shape& EOR,
   //1) Get split parts of edge with state TB
   const TopTools_ListOfShape& LSE = myDataStructure -> DS().GetShapeWithState(EOR).Part(TB);
   TopTools_ListIteratorOfListOfShape  it (LSE);
-  Standard_Boolean first = Standard_True;
   for(; it.More(); it.Next()) {
 
     TopoDS_Edge newE = TopoDS::Edge(it.Value());
@@ -785,7 +784,6 @@ void TopOpeBRepBuild_Builder1::GFillEdgeSameDomWES(const TopoDS_Shape& EOR,
   
   //2) Get ON parts of the edge and define to keep it or not
   const TopTools_ListOfShape& LSEOn = myDataStructure -> DS().GetShapeWithState(EOR).Part(TopAbs_ON);
-  first = Standard_True;
   it.Initialize(LSEOn);
   for(; it.More(); it.Next()) {
     
@@ -1013,14 +1011,10 @@ void TopOpeBRepBuild_Builder1::PerformONParts(const TopoDS_Shape& FOR1,
 
   Standard_Integer iref = myDataStructure -> DS().AncestorRank(FOR1);
     
-  Standard_Boolean RevOri;
-
   if(iref == 1) {//object
     FTB = FTB1;
-    RevOri = G1.IsToReverse1();
   }
   else {//tool
-    RevOri = G1.IsToReverse2();
     FTB = FTB2;
   }
 
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
index 93501c6..f7a8f74 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
@@ -1170,11 +1170,11 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
     }
 
     TopOpeBRepDS_Transition TFEe3; TopAbs_State TFEe3bef = TFEe3.Before(); TopAbs_State TFEe3aft = TFEe3.After();
-    TopAbs_Orientation oe3FORF = TopAbs_FORWARD; Standard_Boolean e3BoundFOR = Standard_False;
+    TopAbs_Orientation oe3FORF = TopAbs_FORWARD;
     if (ssif) {
       TFEe3 = ssie3->Transition();
       TFEe3bef = TFEe3.Before();
-      e3BoundFOR = FUN_tool_orientEinFFORWARD(e3,FOR,oe3FORF);	
+      FUN_tool_orientEinFFORWARD(e3,FOR,oe3FORF);	
     }
 
     if (FFinSDSO) {
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx
index e537ca8..650cc72 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx
@@ -335,7 +335,6 @@
   //
   // 2. Define the First Edge on the Wire from aCopyAvoidMap
   Standard_Integer i, aNbEdges=0, aNbAvoidEdgesOnWire;
-  Standard_Boolean IsAllAvoidEdgesDegenerated=Standard_False;
   Standard_Real aDMax=0, aR;
 
   TopExp_Explorer aWExp; 
@@ -374,7 +373,6 @@
     // All of anAvoidMap edges are degenerated
     // So take the edge with max dist. between 
     //First and Last 2d points as the First edge
-    IsAllAvoidEdgesDegenerated=Standard_True;
     //if(aNbAvoidEdgesOnWire != 1)
      // return 1; //in case of several degenerated edges we cannot connect wire by right way
     for (i=1; i<=aNbAvoidEdgesOnWire; i++) {
@@ -677,7 +675,7 @@
   void TopOpeBRepBuild_CorrectFace2d::CheckList (const TopoDS_Face& aFace,
 						 TopTools_ListOfShape&  HeadList)
 {
-  TopAbs_Orientation r1, r2;
+  TopAbs_Orientation r1;
   Standard_Real aDTolerance=Precision::Confusion();
   TopTools_SequenceOfShape aSeq;
   TopTools_ListIteratorOfListOfShape anIt(HeadList);
@@ -686,7 +684,6 @@
   }
 
   r1=aSeq(1).Orientation();
-  r2=aSeq(2).Orientation();
   Standard_Integer i, aNb=aSeq.Length();
 //modified by NIZNHY-PKV Mon Apr 24 14:43:57 2000f
   Standard_Boolean aFirstCheck=Standard_False;
@@ -720,7 +717,6 @@
 //modified by NIZNHY-PKV Mon Apr 24 14:43:59 2000t
 
   r1=aSeq(1).Orientation();
-  r2=aSeq(2).Orientation();
 
   TopoDS_Vertex aV1R, aV2F;
   
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_FREGU.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_FREGU.cxx
index d779824..b8b0e7c 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_FREGU.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_FREGU.cxx
@@ -280,8 +280,6 @@ void TopOpeBRepBuild_Builder::RegularizeFace
 //	Standard_Integer nlspfsdFFe = lspfsdFFe.Extent();
 #endif    
 	  
-        Standard_Integer nDEB2=0 ;
-	
 	for (TopTools_ListIteratorOfListOfShape it(lspfsdFFe);it.More();it.Next()) {
 	  
 	  // fsdFFe (Cf supra E) a ete splittee, espfdsFFe = arete splittee de fsdFFe
@@ -302,7 +300,6 @@ void TopOpeBRepBuild_Builder::RegularizeFace
 	    
 	    // son decoupage lresplit est stocke dans la DS du Builder
 	    const TopTools_ListOfShape& lresplit = myESplits.Find(espfsdFFe); //Cf supra E''
-	    nDEB2 = lresplit.Extent();
 	    
 	    // on memorise que espfsdFFe est redecoupee ...
 	    myMemoSplit.Add(espfsdFFe);
@@ -310,7 +307,6 @@ void TopOpeBRepBuild_Builder::RegularizeFace
 	    // on stocke le nouveau decoupage de espfsdFFe dans la DS du builder ...
 	    TopTools_ListOfShape& lsp = ChangeSplit(espfsdFFe,stafsdFFe);  
 	    GCopyList(lresplit,lsp);
-	    nDEB2 = lsp.Extent();
 	  }
 	} // it.More
       } // iiista
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx
index 69700a5..46a2eee 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx
@@ -144,7 +144,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
     
   TopTools_ListIteratorOfListOfShape it2,it3,it4;
   TopTools_DataMapIteratorOfDataMapOfShapeListOfShape itt1,itt2,itt3;
-  TopAbs_Orientation ori,ori1;
+  TopAbs_Orientation ori1;
 
   Standard_Boolean Ori3dReversed = Standard_False;
   Standard_Boolean Ori3dForward = Standard_False;
@@ -282,7 +282,6 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
 	  TopTools_ListOfShape myWireLE;
 	  for (itt3.Initialize(mapEdgLEdg); itt3.More(); itt3.Next()) {
 	    const TopoDS_Shape& edg = itt3.Key();
-	    ori = edg.Orientation();
 	    const TopTools_ListOfShape& LEdg1 = mapEdgLEdg.Find(edg);
 	    Standard_Boolean OriReversed = Standard_False;
 	    Standard_Boolean OriForward = Standard_False;
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx
index 64a21f3..97c6fff 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx
@@ -249,16 +249,8 @@ void TopOpeBRepBuild_Builder::GFindSamDomSODO(TopTools_ListOfShape& LSO,TopTools
     else if ( o != oref && !GContains(s,LLDO) ) LLDO.Append(s);
   }
   
-  Standard_Integer nso,ndo;
-  
-  nso = LLSO.Extent();
-  ndo = LLDO.Extent();
-  
   LSO = LLSO;
   LDO = LLDO;
-  
-  nso = LSO.Extent();
-  ndo = LDO.Extent();
 }
 
 //=======================================================================
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
index a58a277..a16878c 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
@@ -155,9 +155,8 @@ void TopOpeBRepBuild_Builder::GFillEdgePVS(const TopoDS_Shape& E,
                                            const TopOpeBRepBuild_GTopo& G,
                                            TopOpeBRepBuild_PaveSet& PVS)
 {
-  TopAbs_ShapeEnum t1,t2,ShapeInterf;
+  TopAbs_ShapeEnum t1,t2;
   G.Type(t1,t2);
-  ShapeInterf = t1;
   TopAbs_State TB1,TB2;
   G.StatesON(TB1,TB2);
   
@@ -345,7 +344,7 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
   // BUC60093 :  only 2 G : 1 point && 1 vertex  
   // deleting interfs on G = vertex sdm && closingE  
   TopoDS_Vertex vclo; Standard_Boolean closedE = TopOpeBRepTool_TOOL::ClosedE(TopoDS::Edge(E),vclo);
-  Standard_Integer kp1 = 0; Standard_Integer ikp1 = 0; 
+  Standard_Integer kp1 = 0;
   if (closedE) {
     tki.Init();
     Standard_Integer nG = 0;
@@ -358,7 +357,7 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
       TopoDS_Shape oov;
       FUN_ds_getoov(v,myDataStructure,oov);
       Standard_Boolean samev = v.IsSame(vclo), sameoov = oov.IsSame(vclo);
-      if (samev || sameoov) {ikp1 = Gcur; kp1 = Gcur;}
+      if (samev || sameoov) {kp1 = Gcur;}
       tki.Next();
     }
     if (nG == 1) kp1 = 0; // we have only one interf on vGclo -> keep the interf
@@ -402,8 +401,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
 	      aa += TCollection_AsciiString(Gcur); DSD.DumpLOI(LICur,cout,aa);}
 #endif
 
-    Standard_Boolean Ghsd = Standard_False; TopoDS_Shape vGsd; 
-    if (vertex) Ghsd = FUN_ds_getoov(BDS.Shape(Gcur), myDataStructure, vGsd); //xpu221098
+    TopoDS_Shape vGsd; 
+    if (vertex) FUN_ds_getoov(BDS.Shape(Gcur), myDataStructure, vGsd); //xpu221098
 
     // recall : I3d=(I3dF,I3dFE) : I3dF=(T(F),G,F), I3dFE=(T(F),G,E)
     //          I2d=I2dFE
@@ -496,8 +495,7 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
     // - kp3 -
     // xpu200598 interference 2d at GPOINT
     Standard_Boolean kp3 = (n2d > 0) && point;
-    TopAbs_Orientation Okp3 = TopAbs_EXTERNAL; 
-    if (kp3) Okp3=l2dFEcur.First()->Transition().Orientation(TopAbs_IN);
+    if (kp3) l2dFEcur.First()->Transition().Orientation(TopAbs_IN);
 
 
     TopOpeBRepDS_PointIterator itCur(LICur); Standard_Integer iICur=0;
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
index 2ebbd10..0335b8b 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
@@ -1049,8 +1049,8 @@ void debmergee(const Standard_Integer /*i*/) {}
 					   const TopOpeBRepBuild_GTopo& G1,
 					   const TopTools_ListOfShape& LSclass)
 {
-  TopAbs_ShapeEnum t1,t2,ShapeInterf;
-  G1.Type(t1,t2); ShapeInterf = t1;
+  TopAbs_ShapeEnum t1,t2;
+  G1.Type(t1,t2);
   TopAbs_State TB1,TB2; G1.StatesON(TB1,TB2);
   // work on a FORWARD edge <EF>
   TopoDS_Shape EF = EOR; EF.Orientation(TopAbs_FORWARD);
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx
index 0096956..0f1ca38 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx
@@ -482,20 +482,15 @@ void TopOpeBRepBuild_Builder::GFillShellSFS(const TopoDS_Shape& SH,
       cout<<endl;}
 #endif
   
-  Standard_Integer nlsfs = SFS.ChangeStartShapes().Extent();
   TopOpeBRepTool_ShapeExplorer exFace;
-  Standard_Integer ifor = 0;
   
   // 1/ : toutes les faces HasSameDomain
   for (exFace.Init(SH,TopAbs_FACE); exFace.More(); exFace.Next()) {
-    nlsfs = SFS.ChangeStartShapes().Extent();
     const TopoDS_Shape& FOR = exFace.Current();
-    ifor = myDataStructure->Shape(FOR);
     Standard_Boolean hsd = myDataStructure->HasSameDomain(FOR);
     if ( hsd ) {
       GFillFaceSFS(FOR,LSO2,G1,SFS);
     } // hsd
-    nlsfs = SFS.ChangeStartShapes().Extent();
   } // exFace.More()
   
 #ifdef DEB
@@ -506,14 +501,11 @@ void TopOpeBRepBuild_Builder::GFillShellSFS(const TopoDS_Shape& SH,
   
   // 2/ : toutes les faces non HasSameDomain
   for (exFace.Init(SH,TopAbs_FACE); exFace.More(); exFace.Next()) {
-    nlsfs = SFS.ChangeStartShapes().Extent();
     const TopoDS_Shape& FOR = exFace.Current();
-    ifor = myDataStructure->Shape(FOR);
     Standard_Boolean hsd = myDataStructure->HasSameDomain(FOR);
     if ( !hsd ) {
       GFillFaceSFS(FOR,LSO2,G1,SFS);
     } // hsd
-    nlsfs = SFS.ChangeStartShapes().Extent();
   }
   
 } // GFillShellSFS
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
index c4ecb0e..393b30c 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
@@ -660,15 +660,12 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
   TopTools_ListOfShape& lmergesha1 = ChangeMerged(myShape1,myState1);
 /*  TopTools_ListOfShape& lmergesha2 =*/ ChangeMerged(myShape2,myState2);
   
-  Standard_Boolean traite = Standard_True;
-
   Standard_Boolean soldisj = Standard_False;
   TopOpeBRepTool_ShapeExplorer exsol1(myShape1,TopAbs_SOLID);
   Standard_Boolean hassol1 = exsol1.More();
   TopOpeBRepTool_ShapeExplorer exsol2(myShape2,TopAbs_SOLID);
   Standard_Boolean hassol2 = exsol2.More();
   soldisj = (hassol1 && hassol2);
-  traite = soldisj;
 
 //modified by NIZHNY-MKK  Fri May 19 16:18:12 2000.BEGIN  
   Standard_Boolean hasnotsol1=Standard_False;
@@ -683,7 +680,6 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
       hasnotsol2 = Standard_True;
   }
   soldisj = !(hasnotsol1 || hasnotsol2);
-  traite = soldisj;
 //modified by NIZHNY-MKK  Fri May 19 16:18:16 2000.END
   
   TopoDS_Solid sol1; TopoDS_Shell outsha1;
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
index 34afcdc..f32bf35 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
@@ -379,12 +379,12 @@ Standard_Boolean  TopOpeBRepBuild_PaveSet::HasEqualParameters()
   }
 
   if ( !myHasEqualParameters ) {
-    Standard_Boolean rd; Standard_Real f=0,l;
+    Standard_Boolean rd; Standard_Real f=0;
     {
       TopLoc_Location loc; Standard_Real ff,ll;
       Handle(Geom_Curve) CmyEdge = BRep_Tool::Curve(myEdge,loc,ff,ll);
       if ( CmyEdge.IsNull() ) rd = Standard_False;
-      else { f = ff; l = ll; rd = Standard_True; }
+      else { f = ff; rd = Standard_True; }
     }
     if (rd) {
       for (it1.Initialize(myVertices); 
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_SREGU.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_SREGU.cxx
index ced935c..1c0c6fc 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_SREGU.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_SREGU.cxx
@@ -247,7 +247,6 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
 //      Standard_Integer nlspssdSSf = lspssdSSf.Extent();
 #endif    
 
-      Standard_Integer nDEB2=0;      
       TopTools_ListOfShape newlspssdSSf; // nouvel ensemble de faces splittees de ssdSSf
 
       for (TopTools_ListIteratorOfListOfShape it(lspssdSSf);it.More();it.Next()) {
@@ -268,7 +267,6 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
 
 	  // son decoupage lrfsplit est stocke dans la DS du Builder
 	  const TopTools_ListOfShape& lrfsplit = myFSplits.Find(fspssdSSf);//Cf supra E''
-	  nDEB2 = lrfsplit.Extent();
 
 	  // on memorise que fspssdSSf est redecoupee ...
 	  myMemoSplit.Add(fspssdSSf);
@@ -276,7 +274,6 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
 	  // on stocke le nouveau decoupage de fspssdSSf dans la DS du builder ...
 	  TopTools_ListOfShape& lsp = ChangeSplit(fspssdSSf,stassdSSf);  
 	  GCopyList(lrfsplit,lsp);
-	  nDEB2 = lsp.Extent();
 	}	
       } // lspssdSSf.More()
     } // explore(ssdSS,TopAbs_FACE)
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx
index 365070e..ccda683 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx
@@ -531,10 +531,8 @@ const Standard_Real PAR_T = 0.43213918;
 {
   TopoDS_Edge aEd=anEdgeObj;
   TopoDS_Face aFS=aFObj;
-  Standard_Real tolE = 0., f2 = 0., l2 = 0., tolpc = 0., tol = 0., f = 0., l = 0., par = 0.;
-  tolE=BRep_Tool::Tolerance(aEd);
+  Standard_Real f2 = 0., l2 = 0., tolpc = 0., f = 0., l = 0., par = 0.;
   Handle(Geom2d_Curve) C2D=FC2D_CurveOnSurface(aEd,aFS,f2,l2,tolpc, Standard_True);
-  tol = Max(tolE,tolpc);
 
   BRepAdaptor_Curve  aCA(aEd);
   f=aCA.FirstParameter();
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools2d.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools2d.cxx
index 437944d..a5c816d 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools2d.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Tools2d.cxx
@@ -180,14 +180,12 @@ static
 //=======================================================================
   void TopOpeBRepBuild_Tools2d::DumpMapOfShapeVertexInfo(const TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo& M)
 {
-  Standard_Integer i, aNb, aNbEdgesIn, aNbEdgesOut;
+  Standard_Integer i, aNb;
   aNb=M.Extent();
   for (i=1; i<=aNb; i++) {
     const TopOpeBRepBuild_VertexInfo& aVInfo=M(i);
     const TopTools_IndexedMapOfOrientedShape& EdgesIn   =aVInfo.EdgesIn();
     const TopTools_IndexedMapOfOrientedShape& EdgesOut  =aVInfo.EdgesOut();
-    aNbEdgesIn   =EdgesIn.Extent();
-    aNbEdgesOut  =EdgesOut.Extent();
     
     printf(" Vert.#%d, ", i);
     const TopTools_ListOfShape& aList=aVInfo.ListPassed();
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_VertexInfo.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_VertexInfo.cxx
index 6ce3405..16af917 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_VertexInfo.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_VertexInfo.cxx
@@ -189,9 +189,8 @@
   const TopoDS_Edge& TopOpeBRepBuild_VertexInfo::CurrentOut () 
 {
 
-  Standard_Integer i, aNbOut, aNbPassed ;
+  Standard_Integer i, aNbOut;
   aNbOut =myLocalEdgesOut.Extent();
-  aNbPassed=myEdgesPassed.Extent();
   
   TopTools_IndexedMapOfOrientedShape aMapPassed;
   TopTools_ListIteratorOfListOfShape anIt(myEdgesPassed);
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx
index 3df724c..6e445bd 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx
@@ -531,12 +531,6 @@ void TopOpeBRepBuild_WireEdgeSet::IsUVISO(const TopoDS_Edge& E,const TopoDS_Face
   PC = FC2D_CurveOnSurface(E,F,fE,lE,tolpc,trim3d);
   if (PC.IsNull()) Standard_ProgramError::Raise("TopOpeBRepBuild_WireEdgeSet::IsUVISO");
 
-#ifdef DEB
-  Standard_Integer iE = 0, iF = 0;
-  if (LOCAL_PBUILDER_DEB != NULL) iE = LOCAL_PBUILDER_DEB->DataStructure()->Shape(E);
-  if (LOCAL_PBUILDER_DEB != NULL) iF = LOCAL_PBUILDER_DEB->DataStructure()->Shape(F);
-#endif
-
   Handle(Standard_Type) TheType = PC->DynamicType();
   if (TheType == STANDARD_TYPE(Geom2d_Line)) {
     const Handle(Geom2d_Line)& HL = *((Handle(Geom2d_Line)*)&PC);
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx
index c246e77..d223c78 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx
@@ -401,7 +401,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
       GLOBAL_SplitAnc->Clear(); // xpu280598
 
       // FuseFace
-      Standard_Integer nlsfs = SFS.ChangeStartShapes().Extent();
+      SFS.ChangeStartShapes().Extent();
       if (performfufa) {	
 #ifdef DEB
 	if(tSPS) debffflo(iF);
@@ -440,7 +440,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #endif
 	  SFS.AddStartElement(flfr2);
 	}
-	nlsfs = SFS.ChangeStartShapes().Extent();
+	SFS.ChangeStartShapes().Extent();
       } // performfufa (context)
       
     } // makemerge
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx
index 379954b..37821f1 100644
--- a/src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx
+++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx
@@ -741,7 +741,6 @@ Standard_EXPORT Standard_Boolean FUNKP_KPiskolesh(const TopOpeBRepBuild_Builder&
   TopTools_ListOfShape lfhg; 
   Standard_Integer nfhg = BU.KPlhg(sol,TopAbs_FACE,lfhg);
   if ( nfhg != 0 ) {
-    Standard_Boolean hasgeominterf = Standard_False; // DEB
     TopTools_ListIteratorOfListOfShape its(lfhg);
     for(; its.More(); its.Next()) {
       TopOpeBRepDS_ListIteratorOfListOfInterference iti(BDS.ShapeInterferences(its.Value()));
@@ -749,7 +748,6 @@ Standard_EXPORT Standard_Boolean FUNKP_KPiskolesh(const TopOpeBRepBuild_Builder&
 	Handle(TopOpeBRepDS_ShapeShapeInterference) ssi;
 	ssi = Handle(TopOpeBRepDS_ShapeShapeInterference)::DownCast(iti.Value());
 	if (ssi.IsNull()) {
-	  hasgeominterf = Standard_True; // DEB
 	  return Standard_False;
 	}
       }
diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_EIR.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_EIR.cxx
index 585ef59..79b4f89 100644
--- a/src/TopOpeBRepDS/TopOpeBRepDS_EIR.cxx
+++ b/src/TopOpeBRepDS/TopOpeBRepDS_EIR.cxx
@@ -735,15 +735,13 @@ static void FUN_ProcessEdgeInterferences(const Standard_Integer EIX
   }
 #endif
 
-  Standard_Integer nF = 0, nE = 0, nFE = 0;
-
   // LI -> (lF + lFE) + lE + [LI]
   // lF  = {interference on edge <EIX> :  (T(face),G=POINT/VERTEX,S)
   // lFE = {interference on edge <EIX> :  (T(face),G=POINT/VERTEX,S=EDGE)
   // lE  = {interference on edge <EIX> :  (T(edge),G=POINT/VERTEX,S)
-  TopOpeBRepDS_ListOfInterference lF; nF = FUN_selectTRASHAinterference(LI,TopAbs_FACE,lF);
-  TopOpeBRepDS_ListOfInterference lFE; nFE = FUN_selectSKinterference(lF,TopOpeBRepDS_EDGE,lFE);
-  TopOpeBRepDS_ListOfInterference lE; nE = FUN_selectTRASHAinterference(LI,TopAbs_EDGE,lE);
+  TopOpeBRepDS_ListOfInterference lF; FUN_selectTRASHAinterference(LI,TopAbs_FACE,lF);
+  TopOpeBRepDS_ListOfInterference lFE; FUN_selectSKinterference(lF,TopOpeBRepDS_EDGE,lFE);
+  TopOpeBRepDS_ListOfInterference lE; FUN_selectTRASHAinterference(LI,TopAbs_EDGE,lE);
 
 #ifdef DEB 
   TopOpeBRepDS_Dumper DSD(HDS);	      
@@ -972,7 +970,6 @@ void TopOpeBRepDS_EIR::ProcessEdgeInterferences(const Standard_Integer EIX)
     for (tki.Init(); tki.More(); tki.Next()) {
       TopOpeBRepDS_Kind K; Standard_Integer G; tki.Value(K,G);
       TopOpeBRepDS_ListOfInterference& loi = tki.ChangeValue(K,G);
-      Standard_Integer nloi = loi.Extent();
       if (K != TopOpeBRepDS_POINT) {
 	LI.Append(loi);
 	continue;
@@ -1018,7 +1015,6 @@ void TopOpeBRepDS_EIR::ProcessEdgeInterferences(const Standard_Integer EIX)
 	if (curvefound) break;
       } // itlfx.More()
       
-      nloi = loi.Extent();
 #ifdef DEB
 //      Standard_Integer nLI = LI.Extent();
 #endif
diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx
index fcb5d01..39fc3c4 100644
--- a/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx
+++ b/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx
@@ -287,10 +287,6 @@ Standard_EXPORT Standard_Boolean FDS_EdgeIsConnexToSameDomainFaces
 (const TopoDS_Shape& E,const Handle(TopOpeBRepDS_HDataStructure)& HDS)  // not used
 //----------------------------------------------------
 {
-#ifdef DEB
-  Standard_Integer if1 = 0, if2 = 0;
-#endif
-
   const TopOpeBRepDS_DataStructure& BDS = HDS->DS();
   const TopTools_ListOfShape& lf = FDSCNX_EdgeConnexitySameShape(E,HDS);
   Standard_Integer nlf = lf.Extent();
@@ -303,9 +299,6 @@ Standard_EXPORT Standard_Boolean FDS_EdgeIsConnexToSameDomainFaces
     TopTools_ListIteratorOfListOfShape i2(i1);
     for(;i2.More();i2.Next()) {
       const TopoDS_Shape& f2 = i2.Value();
-#ifdef DEB
-      if1 = BDS.Shape(f1);if2 = BDS.Shape(f2);
-#endif
       samdom = FDS_aresamdom(BDS,E,f1,f2);
       if (samdom) break;
     }
@@ -1733,8 +1726,8 @@ Standard_EXPORT void FUN_ds_completeforSE6(const Handle(TopOpeBRepDS_HDataStruct
 	    else if (M_EXTERNAL(O))                 {newT.Set(O);}
 	    else if (M_INTERNAL(O))                 {
 	      Standard_Real parEsd   = BRep_Tool::Parameter(vG,Esd);
-	      gp_Vec tgEsd; Standard_Boolean ok = TopOpeBRepTool_TOOL::TggeomE(parEsd,Esd,tgEsd); // dir
-	      gp_Vec tgE  ;     ok = TopOpeBRepTool_TOOL::TggeomE(parE,SE,tgE);      // dir
+	      gp_Vec tgEsd; TopOpeBRepTool_TOOL::TggeomE(parEsd,Esd,tgEsd); // dir
+	      gp_Vec tgE  ; TopOpeBRepTool_TOOL::TggeomE(parE,SE,tgE);      // dir
 	      Standard_Real dot = tgEsd.Dot(tgE);
 #ifdef DEB
 	      Standard_Real tola =
diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx
index 4d679b5..be61f37 100644
--- a/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx
+++ b/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx
@@ -95,14 +95,13 @@ static Standard_Boolean FUN_keepEinterference
   //  Standard_Boolean k4I = (((shab == TopAbs_FACE) && (stab == TopAbs_OUT)) &&
 //		((shaa == TopAbs_FACE) && (staa == TopAbs_OUT))); 
 #endif
-    Standard_Boolean k4C = Standard_False;
     {
       TopoDS_Vertex Vf,Vr; TopExp::Vertices(TopoDS::Edge(E),Vf,Vr);
       TopTools_ListIteratorOfListOfShape it(DS.ShapeSameDomain(VG));
       for (; it.More(); it.Next()) {
 	const TopoDS_Shape& Vsd = it.Value();
-	if      ( Vsd.IsSame(Vf) ) { k4C = Standard_True; break; }
-	else if ( Vsd.IsSame(Vr) ) { k4C = Standard_True; break; }
+	if      ( Vsd.IsSame(Vf) ) { break; }
+	else if ( Vsd.IsSame(Vr) ) { break; }
       }
     }
 #ifdef DEB
diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_ProcessFaceInterferences.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_ProcessFaceInterferences.cxx
index 9992d87..bb8bb61 100644
--- a/src/TopOpeBRepDS/TopOpeBRepDS_ProcessFaceInterferences.cxx
+++ b/src/TopOpeBRepDS/TopOpeBRepDS_ProcessFaceInterferences.cxx
@@ -287,8 +287,6 @@ Standard_EXPORT void FUN_resolveFUNKNOWN
 
     Standard_Boolean isclosedFF = BRep_Tool::IsClosed(EE,FF);
     Standard_Boolean isclosedFS = BRep_Tool::IsClosed(EE,FS);
-    Standard_Boolean go = Standard_True;
-    go = (isclosedFF || isclosedFS);
 //    if (!go) continue;
 
     // la face FF transitionne par la transition T1.IsUnknown()
diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
index d97e888..15ed348 100644
--- a/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
+++ b/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
@@ -709,9 +709,6 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
   Standard_Real tola = Precision::Angular()*1.e3; //gp_Dir xapp,yapp; Standard_Boolean refapp = Standard_False;
   gp_Dir x,y; Standard_Boolean ok = ::FUN_vectors(fref,e,pare,y,x,tola,Standard_False);
   if (!ok) {FUN_Raise(); return Standard_False;}
-#ifdef DEB
-  gp_Dir z = x^y;    
-#endif
   
   // initializing
   // ------------
diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx
index de19431..78ab303 100644
--- a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx
+++ b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx
@@ -301,9 +301,6 @@ Standard_Real TopOpeBRepTool_ShapeTool::PeriodizeParameter
 
   Standard_Real Ufirst,Ulast,Vfirst,Vlast;
   Surf->Bounds(Ufirst,Ulast,Vfirst,Vlast);
-  Standard_Real Uperiod = 0., Vperiod = 0.;
-  if (isUperio) Uperiod = Ulast - Ufirst;
-  if (isVperio) Vperiod = Vlast - Vfirst;
 
   Standard_Real first,last,tolpc;
   const Handle(Geom2d_Curve) PC = FC2D_CurveOnSurface(E,F,first,last,tolpc);
diff --git a/src/Transfer/Transfer_TransferInput.cxx b/src/Transfer/Transfer_TransferInput.cxx
index 4f09be1..2774ef1 100644
--- a/src/Transfer/Transfer_TransferInput.cxx
+++ b/src/Transfer/Transfer_TransferInput.cxx
@@ -26,9 +26,7 @@
 // Vrai resultat : doit etre transient (simple ou liste)
     DeclareAndCast(Transfer_SimpleBinderOfTransient,transb,binder);
     DeclareAndCast(Transfer_MultipleBinder,multi,binder);
-    Standard_Boolean OK = Standard_False;
     if (!transb.IsNull()) {
-      OK = Standard_True;
       if (transb->HasResult()) iter.AddItem(transb->Result());
     }
     else if (!multi.IsNull()) {
diff --git a/src/Units/Units_Lexicon.cxx b/src/Units/Units_Lexicon.cxx
index 38a3321..55be7b7 100644
--- a/src/Units/Units_Lexicon.cxx
+++ b/src/Units/Units_Lexicon.cxx
@@ -43,7 +43,7 @@ void Units_Lexicon::Creates(const Standard_CString afilename)
   char *Oper = oper ;
   char *Coeff = coeff ;
 #endif
-  Standard_Integer fr,i;
+  Standard_Integer i;
   Standard_Real value;
   Handle(Units_Token) token;
   struct stat buf;
@@ -73,19 +73,19 @@ void Units_Lexicon::Creates(const Standard_CString afilename)
     if(len == 1) continue; //skl - ???
     for ( i = 0 ; i < 30 ; i++ ) {
       if ( i < len )
-        fr=sscanf(&line[i],"%c",&chain[i]);
+        sscanf(&line[i],"%c",&chain[i]);
       else
         chain[i] = 0 ;
     }
     for ( i = 0 ; i < 10 ; i++ ) {
       if ( 30+i < len )
-        fr=sscanf(&line[30+i],"%c",&oper[i]);
+        sscanf(&line[30+i],"%c",&oper[i]);
       else
         oper[i] = 0 ;
     }
     for ( i = 0 ; i < 30 ; i++ ) {
       if ( 40+i < len )
-        fr=sscanf(&line[40+i],"%c",&coeff[i]);
+        sscanf(&line[40+i],"%c",&coeff[i]);
       else
         coeff[i] = 0 ;
     }
diff --git a/src/V3d/V3d_PerspectiveView.cxx b/src/V3d/V3d_PerspectiveView.cxx
index 906b4b1..a2d975c 100644
--- a/src/V3d/V3d_PerspectiveView.cxx
+++ b/src/V3d/V3d_PerspectiveView.cxx
@@ -108,13 +108,13 @@ Standard_Real V3d_PerspectiveView::Angle()const  {
 void V3d_PerspectiveView::SetPerspective(const Standard_Real Angle, const Standard_Real UVRatio,
                                          const Standard_Real ZNear, const Standard_Real ZFar)
 {
-  Standard_Real Umin,Vmin,Umax,Vmax,Xrp,Yrp,Zrp,du,dv;
+  Standard_Real Umin,Vmin,Umax,Vmax,Yrp,Zrp,du,dv;
 
   Viewer_BadValue_Raise_if ( ZNear <= 0. || ZFar <= 0. || ZNear >= ZFar, "V3d_PerspectiveView::SetPerspective, bad distances");
   Viewer_BadValue_Raise_if ( Angle <= 0. || Angle >= Standard_PI, "V3d_PerspectiveView::SetAngle, bad angle");
 
   Graphic3d_Vertex PRP = MyViewMapping.ProjectionReferencePoint() ;
-  Xrp = Yrp = Zrp = 0.;
+  Yrp = Zrp = 0.;
 
   PRP.SetCoord(Zrp, Yrp, Zrp);
   MyViewMapping.SetProjectionReferencePoint(PRP);
diff --git a/src/ViewerTest/ViewerTest_ObjectCommands.cxx b/src/ViewerTest/ViewerTest_ObjectCommands.cxx
index 3820292..4a8ce75 100644
--- a/src/ViewerTest/ViewerTest_ObjectCommands.cxx
+++ b/src/ViewerTest/ViewerTest_ObjectCommands.cxx
@@ -2213,7 +2213,6 @@ Handle( Poly_Triangulation ) CalculationOfSphere( double X , double Y , double Z
 
   int i, j;
   int jStart, jEnd, numOffset;
-  int numPts, numPolys;
   double x[3], n[3], deltaPhi, deltaTheta, phi, theta, radius;
   double startTheta, endTheta, startPhi, endPhi;
   int base, numPoles=0, thetaResolution, phiResolution;
@@ -2243,9 +2242,6 @@ Handle( Poly_Triangulation ) CalculationOfSphere( double X , double Y , double Z
   localStartTheta = localStartTheta + (double)(start) * deltaTheta;
   localThetaResolution = end - start;
 
-  numPts =  mPhiResolution * localThetaResolution + 2;
-  numPolys =  mPhiResolution * 2 * localThetaResolution;
-
   // Create north pole if needed
   int number_point = 0;
   int number_pointArray = 0;
diff --git a/src/ViewerTest/ViewerTest_RelationCommands.cxx b/src/ViewerTest/ViewerTest_RelationCommands.cxx
index 77f3702..a15a379 100644
--- a/src/ViewerTest/ViewerTest_RelationCommands.cxx
+++ b/src/ViewerTest/ViewerTest_RelationCommands.cxx
@@ -1099,9 +1099,6 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
       // On recupere les deux vertexes extremites de l'edge de face B
       TopoDS_Vertex  Vb,Vc;
       TopExp::Vertices(EdFromB,Vb,Vc);
-#ifdef DEB
-      gp_Pnt B=
-#endif
                BRep_Tool::Pnt(Vb);
       gp_Pnt C=BRep_Tool::Pnt(Vc);
       
@@ -1173,9 +1170,6 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
       TopoDS_Vertex  Va,Vc;
       TopExp::Vertices(EdFromA,Va,Vc);
       gp_Pnt A=BRep_Tool::Pnt(Va);
-#ifdef DEB
-      gp_Pnt C=
-#endif
                BRep_Tool::Pnt(Vc);
 
       // On projette le point B sur la Face car il 
diff --git a/src/Visual3d/Visual3d_View.cxx b/src/Visual3d/Visual3d_View.cxx
index 7a4d44f..da2cce1 100644
--- a/src/Visual3d/Visual3d_View.cxx
+++ b/src/Visual3d/Visual3d_View.cxx
@@ -1232,7 +1232,6 @@ Standard_Real X, Y, Z;
 Standard_Boolean VUPIsModified  = Standard_False;
 Standard_Boolean VRPIsModified  = Standard_False;
 Standard_Boolean VRUIsModified  = Standard_False;
-Standard_Boolean ScaleIsModified  = Standard_False;
 Standard_Boolean CustomIsModified = Standard_False;
 
         (MyViewOrientation.ViewReferencePoint ()).Coord (X, Y, Z);
@@ -1265,10 +1264,6 @@ Standard_Boolean CustomIsModified = Standard_False;
 Standard_Real Sx, Sy, Sz;
 
         MyViewOrientation.AxialScale(Sx, Sy, Sz);
-	ScaleIsModified =
-            MyCView.Orientation.ViewScaleX != float (X)
-         || MyCView.Orientation.ViewScaleY != float (Y)
-         || MyCView.Orientation.ViewScaleZ != float (Z);
         MyCView.Orientation.ViewScaleX                  = float (Sx);
         MyCView.Orientation.ViewScaleY                  = float (Sy);
         MyCView.Orientation.ViewScaleZ                  = float (Sz);
diff --git a/src/Visual3d/Visual3d_ViewManager.cxx b/src/Visual3d/Visual3d_ViewManager.cxx
index 910962b..dacd11e 100644
--- a/src/Visual3d/Visual3d_ViewManager.cxx
+++ b/src/Visual3d/Visual3d_ViewManager.cxx
@@ -697,14 +697,9 @@ TColStd_Array2OfReal TMap_Matrix_Inv (0,3,0,3);
 
 Standard_Real Dx, Dy, Ratio;
 Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
-Standard_Integer j;
 
 Standard_Integer stop = 0;
 
-Standard_Boolean BResult;
-
-		j = MyDefinedView.Extent ();
-
 		while ((! stop) && (MyIterator.More ())) {
 		    if (TheCView.ViewId ==
 			(MyIterator.Value ())->Identification ()) {
@@ -720,10 +715,10 @@ Standard_Boolean BResult;
 		}
 
 		// View Mapping Transformation and View Clip, inversion
-		BResult = Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
+		Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
 
 		// View Orientation Transformation, inversion
-		BResult = Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
+		Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
 
 		// (AU, AV) : Device Coordinate Space
 		// DCS -> NPCS Normalized Projection Coordinate Space
@@ -836,14 +831,9 @@ TColStd_Array2OfReal TMap_Matrix_Inv (0,3,0,3);
 
 Standard_Real Dx, Dy, Ratio;
 Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
-Standard_Integer j;
 
 Standard_Integer stop = 0;
 
-Standard_Boolean BResult;
-
-		j = MyDefinedView.Extent ();
-
 		while ((! stop) && (MyIterator.More ())) {
 		    if (TheCView.ViewId ==
 			(MyIterator.Value ())->Identification ()) {
@@ -859,10 +849,10 @@ Standard_Boolean BResult;
 		}
 
 		// View Mapping Transformation and View Clip, inversion
-		BResult = Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
+		Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
 
 		// View Orientation Transformation, inversion
-		BResult = Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
+		Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
 
 		// (AU, AV) : Device Coordinate Space
 		// DCS -> NPCS Normalized Projection Coordinate Space
diff --git a/src/Xw/Xw_GraphicDevice.cxx b/src/Xw/Xw_GraphicDevice.cxx
index 378df16..6ec87b8 100644
--- a/src/Xw/Xw_GraphicDevice.cxx
+++ b/src/Xw/Xw_GraphicDevice.cxx
@@ -117,13 +117,12 @@ Xw_TypeOfVisual v3d = Xw_TOV_PREFERRED_TRUECOLOR ;
 	MyFontMap = new Xw_FontMap(MyDisplay.ToCString()) ;
 	MyMarkMap = new Xw_MarkMap(MyDisplay.ToCString()) ;
 
-Standard_Address Bof;
-	Bof	= ExtendedColorMap2D();
-	Bof	= ExtendedColorMap3D();
-	Bof	= ExtendedTypeMap();
-	Bof	= ExtendedWidthMap();
-	Bof	= ExtendedFontMap();
-	Bof	= ExtendedMarkMap();
+	ExtendedColorMap2D();
+	ExtendedColorMap3D();
+	ExtendedTypeMap();
+	ExtendedWidthMap();
+	ExtendedFontMap();
+	ExtendedMarkMap();
 
 	if( !ExtendedColorMap2D() ||
 	    !ExtendedColorMap3D() ||
diff --git a/src/Xw/Xw_Window.cxx b/src/Xw/Xw_Window.cxx
index 525a749..3d168fa 100644
--- a/src/Xw/Xw_Window.cxx
+++ b/src/Xw/Xw_Window.cxx
@@ -104,12 +104,11 @@ union {
 }
 
 void Xw_Window::PrintError() {
-Standard_CString ErrorMessag ;
 Standard_Integer ErrorNumber ;
 Standard_Integer ErrorGravity ;
 
         status = XW_SUCCESS ;
-        ErrorMessag = Xw_get_error(&ErrorNumber,&ErrorGravity) ;
+        Xw_get_error(&ErrorNumber,&ErrorGravity) ;
         Xw_print_error() ;
 }
 
@@ -725,9 +724,8 @@ XW_RESIZETYPE state ;
 
 Standard_Boolean Xw_Window::DoMapping () const {
 int pxc,pyc,width,height;
-XW_WINDOWSTATE state;
 
-      state = Xw_get_window_position (MyExtendedWindow,&pxc,&pyc,&width,&height);
+      Xw_get_window_position (MyExtendedWindow,&pxc,&pyc,&width,&height);
 
       return IsMapped();
 }
diff --git a/src/Xw/Xw_alloc_pixel.cxx b/src/Xw/Xw_alloc_pixel.cxx
index 686dd1f..00ef98b 100644
--- a/src/Xw/Xw_alloc_pixel.cxx
+++ b/src/Xw/Xw_alloc_pixel.cxx
@@ -84,7 +84,6 @@ XW_STATUS status = XW_ERROR;
         if( _CCLASS == PseudoColor ) {
 	  XColor color;
 	  int error,gravity;
-	  char *serror;
 	  color.pixel = pixel;
           color.red = (unsigned short) (r*65535.);
           color.green = (unsigned short) (g*65535.);
@@ -95,7 +94,7 @@ XW_STATUS status = XW_ERROR;
           if( !Xw_get_trace() ) Xw_set_synchronize(_CDISPLAY,True);
           XStoreColor(_CDISPLAY,_CINFO.colormap,&color);
           if( !Xw_get_trace() ) Xw_set_synchronize(_CDISPLAY,False);
-          serror = Xw_get_error(&error,&gravity);
+          Xw_get_error(&error,&gravity);
           if( error < 1000 ) status = XW_SUCCESS;
 	}
 
@@ -135,13 +134,12 @@ XW_STATUS status = XW_ERROR;
 
         if( _CCLASS == PseudoColor ) {
 	  int error,gravity;
-	  char *serror;
 
           Xw_print_error();
           if( !Xw_get_trace() ) Xw_set_synchronize(_CDISPLAY,True);
           XFreeColors(_CDISPLAY,_CINFO.colormap,&pixel,1,0);
           if( !Xw_get_trace() ) Xw_set_synchronize(_CDISPLAY,False);
-          serror = Xw_get_error(&error,&gravity);
+          Xw_get_error(&error,&gravity);
           if( error < 1000 ) status = XW_SUCCESS;
 	}
 
diff --git a/src/Xw/Xw_def_colormap.cxx b/src/Xw/Xw_def_colormap.cxx
index 4a632d2..1fcbb75 100644
--- a/src/Xw/Xw_def_colormap.cxx
+++ b/src/Xw/Xw_def_colormap.cxx
@@ -946,12 +946,11 @@ int nmap;
 //		  unsigned long pixel;
 		  color.red = color.green = color.blue = 0xFFFF;
 #ifdef TEST
-		  char *serror;
 		  Xw_print_error();
 		  if( !Xw_get_trace() ) Xw_set_synchronize(_CDISPLAY,True) ;
               	  status = XAllocColor(_CDISPLAY,cinfo->colormap,&color);
 		  if( !Xw_get_trace() ) Xw_set_synchronize(_CDISPLAY,False) ;
-              	  serror = Xw_get_error(&error,&gravity);
+              	  Xw_get_error(&error,&gravity);
               	  if( status && (error < 1000) ) {
 #else
               	  if( XAllocColor(_CDISPLAY,cinfo->colormap,&color) ) {
diff --git a/src/Xw/Xw_load_icons.cxx b/src/Xw/Xw_load_icons.cxx
index 9d01e44..ee1c1cd 100644
--- a/src/Xw/Xw_load_icons.cxx
+++ b/src/Xw/Xw_load_icons.cxx
@@ -611,7 +611,6 @@ XW_EXT_WINDOW *qwindow = (XW_EXT_WINDOW*)fwindow ;
 XW_EXT_DISPLAY *pdisplay;
 XW_EXT_IMAGEDATA *pimage ;
 XW_EXT_ICON *piconinfo = NULL;
-XW_WINDOWSTATE state ;
 XW_STATUS status ;
 //int iimage,iwidth,iheight,wxc,wyc,wwidth,wheight ;
 int iwidth,iheight,wxc,wyc,wwidth,wheight ;
@@ -653,7 +652,7 @@ time_t t_start,t_finish;
 	if( width <= 0 ) width = _DWIDTH;
 	if( height <= 0 ) height = _DHEIGHT;
 
-	state = Xw_get_window_position(qwindow,
+	Xw_get_window_position(qwindow,
 					&wxc,&wyc,&wwidth,&wheight) ;
 
 	status = Xw_get_window_pixelcoord(qwindow,wwidth/2,wheight/2,&xi,&yi) ;
@@ -733,7 +732,6 @@ XW_EXT_WINDOW *pwindow = (XW_EXT_WINDOW*)awindow ;
 XW_EXT_IMAGEDATA *pimage;
 XW_EXT_ICON *piconinfo ;
 //XW_WINDOWSTATE state ;
-XW_STATUS status ;
 float xi,yi,tw,th,x0,y0,iw,ih ;
 //int i,j,n,wxc,wyc,wsize,wxi,wyi,nimage = 0,maximagewidth = 0,maximageheight = 0 ;
 int i,j,wxc,wyc,wsize,wxi,wyi,nimage = 0,maximagewidth = 0,maximageheight = 0 ;
@@ -763,24 +761,23 @@ int i,j,wxc,wyc,wsize,wxi,wyi,nimage = 0,maximagewidth = 0,maximageheight = 0 ;
 
 	{
 	    int wwidth,wheight,usize = 1+(int)sqrt((double)nimage-1) ;
-	    XW_WINDOWSTATE state ;
 
-	    state = Xw_get_window_position(pwindow,
+	    Xw_get_window_position(pwindow,
 					&wxc,&wyc,&wwidth,&wheight) ;
 	    wsize = min(wwidth,wheight)/max(maximagewidth,maximageheight) ;
 
 	    if( usize > wsize ) {	/* Grows IconBox */
 		wsize = usize ;
-		status = Xw_set_window_position(pwindow,
+		Xw_set_window_position(pwindow,
 			wxc,wyc,wsize*maximagewidth,wsize*maximageheight) ;
 		Xw_resize_window(pwindow) ;
 	    }
 	}
 
 				/* POP and erase IconBox */
-	status = Xw_set_window_state(pwindow,XW_POP) ;
+	Xw_set_window_state(pwindow,XW_POP) ;
 
-	status = Xw_erase_window(pwindow) ;
+	Xw_erase_window(pwindow) ;
 
 	nimage = 0 ;
 	for( piconinfo=(XW_EXT_ICON*) pwindow->other ; piconinfo ;
@@ -789,7 +786,7 @@ int i,j,wxc,wyc,wsize,wxi,wyi,nimage = 0,maximagewidth = 0,maximageheight = 0 ;
 		i = nimage%wsize ; j = nimage/wsize ;
 		wxi = i*maximagewidth+maximagewidth/2 ;
 		wyi = j*maximageheight+maximageheight/2 ;
-		status = Xw_get_window_pixelcoord(pwindow,wxi,wyi,&xi,&yi) ;
+		Xw_get_window_pixelcoord(pwindow,wxi,wyi,&xi,&yi) ;
 		Xw_draw_image(pwindow,piconinfo->pimage,xi,yi) ;
 		Xw_get_text_size(pwindow,0,piconinfo->pname,&tw,&th,&x0,&y0) ;
 		Xw_draw_text(pwindow,xi-tw/2.,yi-th/2.,piconinfo->pname,0.,0) ;
diff --git a/src/Xw/Xw_put_rgbpixel.cxx b/src/Xw/Xw_put_rgbpixel.cxx
index 04a7a4b..627b34c 100644
--- a/src/Xw/Xw_put_rgbpixel.cxx
+++ b/src/Xw/Xw_put_rgbpixel.cxx
@@ -43,7 +43,6 @@ union {
 int fpixel,lpixel,simage,index,isapproximate ;
 register int np ;
 unsigned long pixel ;
-XW_STATUS status ;
 XImage *pximage;
 
         if( !Xw_isdefine_image(pimage) ) {
@@ -54,11 +53,11 @@ XImage *pximage;
 
 	switch ( _CCLASS ) {
 	    case TrueColor :
-		status = Xw_get_color_pixel(_ICOLORMAP,r,g,b,&pixel,&isapproximate) ;
+		Xw_get_color_pixel(_ICOLORMAP,r,g,b,&pixel,&isapproximate) ;
 		break ;
 
 	    case PseudoColor :
-		status = Xw_get_color_index(_ICOLORMAP,r,g,b,&index) ;
+		Xw_get_color_index(_ICOLORMAP,r,g,b,&index) ;
 		pixel = _ICOLORMAP->pixels[index] ;
 		break ;
 	    
diff --git a/src/Xw/Xw_resize_window.cxx b/src/Xw/Xw_resize_window.cxx
index 2f8e663..0e59191 100644
--- a/src/Xw/Xw_resize_window.cxx
+++ b/src/Xw/Xw_resize_window.cxx
@@ -24,7 +24,6 @@ XW_EXT_WINDOW *pwindow = (XW_EXT_WINDOW*)awindow ;
 int xc,yc,width,height ;
 XW_WINDOWSTATE state ;
 XW_DOUBLEBUFFERMODE dbmode ;
-XW_STATUS status ;
 XW_RESIZETYPE mode = XW_TOR_UNKNOWN ;
 int xleft,ytop,xright,ybottom,mask = 0 ;
 
@@ -86,7 +85,7 @@ int xleft,ytop,xright,ybottom,mask = 0 ;
 	    dbmode = Xw_get_double_buffer(pwindow) ;
 	    _DRAWABLE = 0 ;
 	    if( _PIXMAP  || _NWBUFFER > 0 ) Xw_close_pixmap(awindow) ;
-	    status = Xw_set_double_buffer(pwindow,dbmode) ;
+	    Xw_set_double_buffer(pwindow,dbmode) ;
 	} 
 
 #ifdef  TRACE_RESIZE_WINDOW
diff --git a/src/Xw/Xw_set_soft_cursor.cxx b/src/Xw/Xw_set_soft_cursor.cxx
index d901090..c1102cc 100644
--- a/src/Xw/Xw_set_soft_cursor.cxx
+++ b/src/Xw/Xw_set_soft_cursor.cxx
@@ -43,7 +43,6 @@ int button ;
 #endif /*XW_PROTOTYPE*/
 {
 XW_EXT_WINDOW *pwindow = (XW_EXT_WINDOW*)awindow ;
-XW_STATUS status ;
 XW_EVENTTYPE mask1=(XW_EVENTTYPE ) 0 ,mask2=(XW_EVENTTYPE ) 0 ;
 
         if( !Xw_isdefine_window(pwindow) ) {
@@ -69,25 +68,25 @@ XW_EVENTTYPE mask1=(XW_EVENTTYPE ) 0 ,mask2=(XW_EVENTTYPE ) 0 ;
 	switch (type) {
 
 	    case XW_WITHOUT_CURSOR :
-		status = Xw_set_internal_event(pwindow,mask1,NULL) ;
-		status = Xw_set_internal_event(pwindow,mask2,NULL) ;
+		Xw_set_internal_event(pwindow,mask1,NULL) ;
+		Xw_set_internal_event(pwindow,mask2,NULL) ;
 		break ;
 	    case XW_RUBBERLINE_CURSOR :
-		status = Xw_set_internal_event(pwindow,mask1,
+		Xw_set_internal_event(pwindow,mask1,
 							Xw_rubberline_cursor) ;
-		status = Xw_set_internal_event(pwindow,mask2,
+		Xw_set_internal_event(pwindow,mask2,
 							Xw_rubberline_cursor) ;
 		break ;
 	    case XW_RUBBERBAND_CURSOR :
-		status = Xw_set_internal_event(pwindow,mask1,
+		Xw_set_internal_event(pwindow,mask1,
 							Xw_rubberband_cursor) ;
-		status = Xw_set_internal_event(pwindow,mask2,
+		Xw_set_internal_event(pwindow,mask2,
 							Xw_rubberband_cursor) ;
 		break ;
 	    case XW_USERDEFINED_CURSOR :
-		status = Xw_set_internal_event(pwindow,mask1,
+		Xw_set_internal_event(pwindow,mask1,
 							Xw_userdefined_cursor) ;
-		status = Xw_set_internal_event(pwindow,mask2,
+		Xw_set_internal_event(pwindow,mask2,
 							Xw_userdefined_cursor) ;
 		break ;
 #ifndef DEB
diff --git a/src/math/math_BracketedRoot.cxx b/src/math/math_BracketedRoot.cxx
index d7afb9d..2980f08 100644
--- a/src/math/math_BracketedRoot.cxx
+++ b/src/math/math_BracketedRoot.cxx
@@ -15,12 +15,11 @@
 
     Standard_Real Fa,Fc,a,c=0,d=0,e=0;
     Standard_Real min1,min2,p,q,r,s,tol1,xm;
-    Standard_Boolean Ok;
   
     a = Bound1;
     TheRoot = Bound2;
-    Ok = F.Value(a,Fa);
-    Ok = F.Value(TheRoot,TheError);
+    F.Value(a,Fa);
+    F.Value(TheRoot,TheError);
     if (Fa*TheError > 0.) { Done = Standard_False;}
     else {
       Fc = TheError ;
@@ -82,7 +81,7 @@
           else {
              TheRoot += (xm > 0. ? Abs(tol1) : -Abs(tol1));
           }
-          Ok = F.Value(TheRoot,TheError);
+          F.Value(TheRoot,TheError);
       }  
      Done = Standard_False;
     }  
diff --git a/src/math/math_FunctionAllRoots.cxx b/src/math/math_FunctionAllRoots.cxx
index 36b0b5f..5168ced 100644
--- a/src/math/math_FunctionAllRoots.cxx
+++ b/src/math/math_FunctionAllRoots.cxx
@@ -28,11 +28,11 @@
     Standard_Real DebNul,FinNul;
     Standard_Integer Indd,Indf;
     Standard_Real cst,val,valsav=0,valbid;
-    Standard_Boolean bid,fini;
+    Standard_Boolean fini;
     Standard_Integer Nbp,i;
 
     Nbp=S.NbPoints();
-    bid=F.Value(S.GetParameter(1),val);
+    F.Value(S.GetParameter(1),val);
     PNul=Abs(val)<=EpsNul;
     if (!PNul) {valsav=val;}
     InterNul=Standard_False;
@@ -44,7 +44,7 @@
 
     while (!fini) {
 
-      bid=F.Value(S.GetParameter(i),val);
+      F.Value(S.GetParameter(i),val);
       Nul=Abs(val)<=EpsNul;
       if (!Nul) {
 	valsav=val;
@@ -88,7 +88,7 @@
 	InterNul=Standard_True;
 	if (i==2) {
 	  DebNul=S.GetParameter(1);
-	  bid = F.Value(DebNul,valbid);
+	  F.Value(DebNul,valbid);
 	  Indd = F.GetStateNumber();
 	  Nuld=Standard_True;
 	}
@@ -130,7 +130,7 @@
       pdeb.Append(DebNul);
       ideb.Append(Indd);
       FinNul = S.GetParameter(Nbp);
-      bid = F.Value(FinNul,valbid);
+      F.Value(FinNul,valbid);
       Indf = F.GetStateNumber();
       pfin.Append(FinNul);
       ifin.Append(Indf);
diff --git a/src/math/math_FunctionRoot.cxx b/src/math/math_FunctionRoot.cxx
index f0f14a2..fda28e0 100644
--- a/src/math/math_FunctionRoot.cxx
+++ b/src/math/math_FunctionRoot.cxx
@@ -60,7 +60,6 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
                                         const Standard_Real Guess, 
                                         const Standard_Real Tolerance, 
                                         const Standard_Integer NbIterations ){
-     Standard_Boolean Ok;
      math_Vector V(1,1), Tol(1,1);
      math_MyFunctionSetWithDerivatives Ff(F);
      V(1)=Guess;
@@ -75,7 +74,7 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
 #endif
        TheRoot = Sol.Root()(1);
        TheDerivative = Sol.Derivative()(1,1);
-       Ok = F.Value(TheRoot,TheError);
+       F.Value(TheRoot,TheError);
        NbIter = Sol.NbIterations();
      }       
    }
@@ -85,7 +84,6 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
                                         const Standard_Real A,
                                         const Standard_Real B,
                                         const Standard_Integer NbIterations ){
-     Standard_Boolean Ok;
      math_Vector V(1,1),Aa(1,1),Bb(1,1), Tol(1,1);
      math_MyFunctionSetWithDerivatives Ff(F);
      V(1)=Guess;
@@ -102,7 +100,7 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
 #endif
        TheRoot = Sol.Root()(1);
        TheDerivative = Sol.Derivative()(1,1);
-       Ok = F.Value(TheRoot,TheError);
+       F.Value(TheRoot,TheError);
        NbIter = Sol.NbIterations();
      }
    }
diff --git a/src/math/math_Powell.cxx b/src/math/math_Powell.cxx
index 5801c86..95bf63e 100644
--- a/src/math/math_Powell.cxx
+++ b/src/math/math_Powell.cxx
@@ -96,7 +96,6 @@ void math_Powell::Perform(math_MultipleVarFunction& F,
 
 
   Done = Standard_False;
-  Standard_Boolean Ok;
   Standard_Integer i, ibig, j;
   Standard_Real t, fptt, del;
   Standard_Integer n = TheLocation.Length();
@@ -114,12 +113,12 @@ void math_Powell::Perform(math_MultipleVarFunction& F,
 
 
   for(Iter = 1; Iter<= Itermax; Iter++) {
-    Ok = F.Value(TheLocation, PreviousMinimum);
+    F.Value(TheLocation, PreviousMinimum);
     ibig = 0;
     del = 0.0;
     for (i = 1; i <= n; i++){
       for(j =1; j<= n; j++) xit(j) = TheDirections(j,i);
-      Ok = F.Value(TheLocation, fptt); 
+      F.Value(TheLocation, fptt); 
       Standard_Boolean IsGood = MinimizeDirection(TheLocation, xit, 
 					 TheMinimum, F_Dir);
 
@@ -155,7 +154,7 @@ void math_Powell::Perform(math_MultipleVarFunction& F,
     
     // Valeur de la fonction au point extrapole:
 
-    Ok = F.Value(ptt, fptt);
+    F.Value(ptt, fptt);
 
     if (fptt < PreviousMinimum) {
       t = 2.0 *(PreviousMinimum -2.0*TheMinimum +fptt)*

-- 
OCE packaging



More information about the debian-science-commits mailing list