mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix const cast warnings generated by new flags
git-svn-id: svn://localhost/ardour2/branches/3.0@13124 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
69ca705286
commit
760ccbabfb
16 changed files with 37 additions and 24 deletions
|
|
@ -232,7 +232,8 @@ MidiSource::midi_read (Evoral::EventSink<framepos_t>& dst, framepos_t source_sta
|
|||
_name, time_frames + source_start, i->event_type(), i->size()));
|
||||
|
||||
if (tracker) {
|
||||
Evoral::MIDIEvent<Evoral::MusicalTime>& ev (*(Evoral::MIDIEvent<Evoral::MusicalTime>*) (&(*i)));
|
||||
Evoral::MIDIEvent<Evoral::MusicalTime>& ev (*(reinterpret_cast<Evoral::MIDIEvent<Evoral::MusicalTime>*>
|
||||
(const_cast<Evoral::Event<Evoral::MusicalTime>*> (&(*i)))));
|
||||
if (ev.is_note_on()) {
|
||||
DEBUG_TRACE (DEBUG::MidiSourceIO, string_compose ("\t%1 track note on %2 @ %3 velocity %4\n", _name, (int) ev.note(), time_frames, (int) ev.velocity()));
|
||||
tracker->add (ev.note(), ev.channel());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue