fixed a few warnings from clang static analysis

This commit is contained in:
Robin Gareus 2014-03-18 22:51:44 +01:00
parent 0e41d00811
commit 2952ac05e6
3 changed files with 3 additions and 2 deletions

View File

@ -1020,6 +1020,7 @@ GainMeter::get_gm_width ()
{
Gtk::Requisition sz;
int min_w = 0;
sz.width = 0;
meter_metric_area.size_request (sz);
min_w += sz.width;
level_meter->size_request (sz);

View File

@ -725,7 +725,7 @@ RouteTimeAxisView::set_track_mode (TrackMode mode, bool apply_to_selection)
_editor.get_selection().tracks.foreach_route_time_axis (boost::bind (&RouteTimeAxisView::set_track_mode, _1, mode, false));
} else {
bool needs_bounce;
bool needs_bounce = false;
if (!track()->can_use_mode (mode, needs_bounce)) {

View File

@ -261,7 +261,7 @@ intptr_t Session::vst_callback (
case audioMasterProcessEvents:
SHOW_CALLBACK ("amc: audioMasterProcessEvents\n");
// VstEvents* in <ptr>
if (plug->midi_buffer()) {
if (plug && plug->midi_buffer()) {
VstEvents* v = (VstEvents*)ptr;
for (int n = 0 ; n < v->numEvents; ++n) {
VstMidiEvent *vme = (VstMidiEvent*) (v->events[n]->dump);