Enable gcc wall and werror.

This commit is contained in:
James Grogan 2023-01-23 11:06:30 +00:00
parent 990cde402b
commit 3fad113178
64 changed files with 347 additions and 314 deletions

View file

@ -1,8 +1,9 @@
#include "Terminal.h"
Terminal::Terminal(TerminalType type, const std::string& label)
: mType(type),
mLabel(label)
: mLabel(label),
mType(type)
{
}
@ -15,4 +16,4 @@ Wire* Terminal::getConnection() const
void Terminal::setConnection(Wire* connection)
{
mConnection = connection;
}
}

View file

@ -12,6 +12,10 @@ int MidiChannelEventAdapter::readEvent(std::ifstream* file, char firstByte, Midi
int second_four_bits = 0xF;
int event_type = (firstByte & first_four_bits) >> 4;
int midi_channel = (firstByte & second_four_bits) >> 4;
(void) event_type;
(void) midi_channel;
unsigned byteCount = 0;
//std::cout << "Channel: " << midi_channel << std::endl;
@ -45,6 +49,7 @@ int MidiChannelEventAdapter::readEvent(std::ifstream* file, char firstByte, Midi
case MidiChannelEvent::Type::PROGRAM:
{
int value0 = *BinaryStream::getNextByteAsInt(file);
(void) value0;
byteCount ++;
break;
}

View file

@ -36,6 +36,7 @@ int MidiMetaEventAdapter::ReadEvent(std::ifstream* file, MetaMidiEvent* event, i
case MetaMidiEvent::Type::END_TRACK:
{
int length = *BinaryStream::getNextByteAsInt(file);
(void) length;
byteCount ++;
break;
}
@ -157,6 +158,7 @@ int MidiMetaEventAdapter::ReadKeySignatureEvent(std::ifstream* file, MetaMidiEve
{
unsigned byteCount = 0;
int length = *BinaryStream::getNextByteAsInt(file);
(void)length;
byteCount++;
MidiKeySignature keySig;
@ -170,6 +172,7 @@ int MidiMetaEventAdapter::ReadTimeCodeEvent(std::ifstream* file, MetaMidiEvent*
{
unsigned byteCount = 0;
int length = *BinaryStream::getNextByteAsInt(file);
(void)length;
byteCount++;
MidiSmtpeTimecode timeCode;

View file

@ -9,4 +9,5 @@ TEST_CASE(TestReadMidi, "audio")
reader.read(TestUtils::getTestDataDir() / "test.mid");
auto document = reader.getDocument();
(void)document;
};