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:
parent
38897f7df4
commit
d341088f13
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user