Fix warnings.
authorDavid Robillard <d@drobilla.net>
Sat, 7 Feb 2009 07:22:25 +0000 (07:22 +0000)
committerDavid Robillard <d@drobilla.net>
Sat, 7 Feb 2009 07:22:25 +0000 (07:22 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4499 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/evoral/midi_util.h
libs/evoral/test/sequence.hpp

index 2193e4c4b199ff8731947764a0213601967607f6..3d6ac095bb7facf92ea954841bdd04e155e1fab6 100644 (file)
@@ -84,7 +84,7 @@ midi_event_size(uint8_t* buffer)
        
        if (status == MIDI_CMD_COMMON_SYSEX) {
                int end;
-               for (end = 1; buffer[end] != MIDI_CMD_COMMON_SYSEX_END; end++);
+               for (end = 1; buffer[end] != MIDI_CMD_COMMON_SYSEX_END; end++) {}
                assert(buffer[end] == MIDI_CMD_COMMON_SYSEX_END);
                return end + 1;
        } else {
index beb5dc1025d46eb1795fc0b55b5f1f3bb27b1121..500ab8b7cfaaf2e80beae933a03f8a581705ba76 100644 (file)
@@ -75,7 +75,7 @@ public:
        sigc::signal<uint32_t, Time, EventType, uint32_t, const uint8_t*> writing;
        
        virtual uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf) {
-               writing(time, type, size, buf);
+               return writing(time, type, size, buf);
        }
 };