From 30472988f5ea21b22f9561f2541c3f126efc297d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 21 Jan 2009 02:43:24 +0000 Subject: Fix a couple of compiler warnings. git-svn-id: svn://localhost/ardour2/branches/3.0@4418 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix_row_labels.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/port_matrix_row_labels.cc') diff --git a/gtk2_ardour/port_matrix_row_labels.cc b/gtk2_ardour/port_matrix_row_labels.cc index 55c760f441..ab9480ac65 100644 --- a/gtk2_ardour/port_matrix_row_labels.cc +++ b/gtk2_ardour/port_matrix_row_labels.cc @@ -89,7 +89,7 @@ PortMatrixRowLabels::render (cairo_t* cr) /* SIDE BUNDLE NAMES */ - uint32_t x; + uint32_t x = 0; if (_location == LEFT) { x = name_pad(); } else if (_location == RIGHT) { @@ -131,7 +131,7 @@ PortMatrixRowLabels::render (cairo_t* cr) for (std::vector >::const_iterator i = _body->row_bundles().begin(); i != _body->row_bundles().end(); ++i) { for (uint32_t j = 0; j < (*i)->nchannels(); ++j) { - uint32_t x; + uint32_t x = 0; if (_location == LEFT) { x = _longest_bundle_name + name_pad() * 2; } else if (_location == RIGHT) { @@ -186,7 +186,7 @@ PortMatrixRowLabels::button_press (double x, double y, int b, uint32_t t) uint32_t row = y / row_height (); boost::shared_ptr bundle; - uint32_t channel; + uint32_t channel = 0; for (std::vector >::const_iterator i = _body->row_bundles().begin(); i != _body->row_bundles().end(); ++i) { if (row < (*i)->nchannels ()) { -- cgit v1.2.3