32/64bit compat
[ardour.git] / gtk2_ardour / midi_tracer.cc
index a92c5a57e349548f19a41264dee340faa8bc366c..cbf500ff99b321df4ca4db57085044bd04f12c27 100644 (file)
@@ -43,13 +43,11 @@ using namespace Glib;
 
 MidiTracer::MidiTracer ()
        : ArdourWindow (_("MIDI Tracer"))
-       , parser (0)
        , line_count_adjustment (200, 1, 2000, 1, 10)
        , line_count_spinner (line_count_adjustment)
        , line_count_label (_("Line history: "))
        , autoscroll (true)
        , show_hex (true)
-       , collect (true)
        , show_delta_time (false)
        , _update_queued (0)
        , fifo (1024)
@@ -405,6 +403,8 @@ MidiTracer::tracer (Parser&, byte* msg, size_t len)
        // If you want to append more to the line, uncomment this first
        // bufsize -= s;
 
+       assert(s <= buffer_size); // clang dead-assignment
+
        fifo.write (&buf, 1);
 
        if (g_atomic_int_get (const_cast<gint*> (&_update_queued)) == 0) {