13
0

Fix some uninitialised variable warnings.

git-svn-id: svn://localhost/ardour2/branches/3.0@12702 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-13 15:38:15 +00:00
parent 38897f7df4
commit d341088f13
3 changed files with 3 additions and 4 deletions

View File

@ -2891,7 +2891,7 @@ void
MidiRegionView::change_velocities (bool up, bool fine, bool allow_smush, bool all_together)
{
int8_t delta;
int8_t value;
int8_t value = 0;
if (_selection.empty()) {
return;

View File

@ -717,7 +717,7 @@ MackieControlProtocol::set_state (const XMLNode & node, int /*version*/)
int retval = 0;
const XMLProperty* prop;
uint32_t bank;
uint32_t bank = 0;
bool active = _active;
if ((prop = node.property (X_("ipmidi-base"))) != 0) {

View File

@ -98,10 +98,9 @@ MackieControlProtocol::left_press (Button &)
{
Sorted sorted = get_sorted_routes();
uint32_t strip_cnt = n_strips ();
uint32_t route_cnt = sorted.size();
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank left with current initial = %1 nstrips = %2 tracks/busses = %3\n",
_current_initial_bank, strip_cnt, route_cnt));
_current_initial_bank, strip_cnt, sorted.size()));
if (_current_initial_bank > strip_cnt) {
switch_banks (_current_initial_bank - strip_cnt);