Fix a couple of compiler warnings.
authorCarl Hetherington <carl@carlh.net>
Wed, 21 Jan 2009 02:43:24 +0000 (02:43 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 21 Jan 2009 02:43:24 +0000 (02:43 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4418 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/port_matrix_row_labels.cc

index 55c760f44175dddd70272dfd4f2404c97a40fc57..ab9480ac65b2e8e4f7eb439f58f21b42dadd65c1 100644 (file)
@@ -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<boost::shared_ptr<ARDOUR::Bundle> >::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<ARDOUR::Bundle> bundle;
-               uint32_t channel;
+               uint32_t channel = 0;
                
                for (std::vector<boost::shared_ptr<ARDOUR::Bundle> >::const_iterator i = _body->row_bundles().begin(); i != _body->row_bundles().end(); ++i) {
                        if (row < (*i)->nchannels ()) {