]> sourceware.org Git - systemtap.git/commitdiff
Fix grapher compilation warnings from rpm build
authorJosh Stone <jistone@redhat.com>
Wed, 5 Aug 2009 03:29:51 +0000 (20:29 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 5 Aug 2009 03:53:44 +0000 (20:53 -0700)
* grapher/Graph.cxx (Graph::Graph): Initialize in declaration order.
* grapher/GraphWidget.cxx (GraphWidget::on_expose_event): Remove several
  unused local variables.

grapher/Graph.cxx
grapher/GraphWidget.cxx

index d36f284f3eb5fcba2bdea2591fd9cb9c37398dca..ec5e40356524c62deb505b8e67547990c38de67f 100644 (file)
@@ -10,9 +10,9 @@ namespace systemtap
   using namespace std::tr1;
   
   Graph::Graph()
-    : _left(0.0), _right(1.0), _top(5.0), _bottom(0.0), _lineWidth(2),
-      _autoScaling(true), _autoScrolling(true), _zoomFactor(1.0),
-      _playButton(new CairoPlayButton)
+    : _lineWidth(2), _autoScaling(true), _autoScrolling(true),
+      _zoomFactor(1.0), _playButton(new CairoPlayButton),
+      _left(0.0), _right(1.0), _top(5.0), _bottom(0.0)
   {
   }
   
index 5b0d1b1cdd25400d92fcf24e7b93d60a025b1267..4a1e091859da7de6c3b585f3ad305626785ad19e 100644 (file)
@@ -54,13 +54,6 @@ namespace systemtap
     if(!window)
       return true;
 
-    Gtk::Allocation allocation = get_allocation();
-    
-    const int graphWidth = allocation.get_width();
-    const int graphHeight = allocation.get_height();
-    const int width = graphWidth - 20;
-    const int height = graphHeight - 20;
-
     Cairo::RefPtr<Cairo::Context> cr = window->create_cairo_context();
 #if 0
     if(event && !_autoScaling)
This page took 0.032061 seconds and 5 git commands to generate.