Unused variables were removed.
   Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
   Standard_Real anArrowLength = aDimensionAspect->ArrowAspect()->Length();
 
-  // Compute flyout direction vector.
-  gp_Dir aPlaneNormal = GetPlane().Axis().Direction();
-  gp_Dir aTargetPointsDir = gce_MakeDir (myFirstPoint, mySecondPoint);
-
   // Build circle with radius that is equal to distance from text position to the center point.
   Standard_Real aRadius = gp_Vec (myCenterPoint, theTextPos).Magnitude();
 
 
 
   Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
 
-  gp_Lin aDimensionLine = gce_MakeLin (aLineBegPoint, aLineEndPoint);
-
   // For extensions we need to know arrow size, text size and extension size: get it from aspect
   Quantity_Length anArrowLength = aDimensionAspect->ArrowAspect()->Length();
 
 
                                  * terminal-like device.  Zero means it's
                                  * a file. */
 
-static unsigned long thePixels[MAXCOLOR];
-
 Standard_Integer Draw_WindowScreen = 0;
 Standard_Boolean Draw_BlackBackGround = Standard_True;
 
 #include <X11/Xutil.h>
 #include <Aspect_DisplayConnection.hxx>
 
+static unsigned long thePixels[MAXCOLOR];
+
 Display* Draw_WindowDisplay = NULL;
 Colormap Draw_WindowColorMap;
 static Handle(Aspect_DisplayConnection) Draw_DisplayConnection;
 
   theWindowNumber   = [aWindow windowNumber];
 
   NSPoint aMouseLoc = [aView convertPoint: [anEvent locationInWindow] fromView: nil];
-  NSRect  aBounds   = [aView bounds];
 
   theX = Standard_Integer (aMouseLoc.x);
   theY = Standard_Integer (aMouseLoc.y);
 
 
   // step 2 : intersection of non-adjacent edges
   ShapeFix_DataMapOfShapeBox2d boxes;
-  Bnd_Box2d aTotalBox = CreateBoxes2d(sewd,face,boxes);
+  (void)CreateBoxes2d(sewd,face,boxes);
   Handle(ShapeAnalysis_Surface) sas = new ShapeAnalysis_Surface(BRep_Tool::Surface(face));
 
   NbSplit=0;