Advanced unusage of parameters

This commit is contained in:
John Stäck 2019-06-23 14:51:31 +02:00
parent 3d38f50d98
commit 2332f37eca
3 changed files with 13 additions and 12 deletions

View file

@ -12,7 +12,7 @@ else
endif endif
CXXFLAGS= $(CFLAGS) -std=c++14 -Wno-unused-parameter CXXFLAGS= $(CFLAGS) -std=c++14
LIBS=-framework SDL2 -lc++ -lc -framework OpenGL LIBS=-framework SDL2 -lc++ -lc -framework OpenGL
LDFLAGS=-macosx_version_min 10.9 -rpath @executable_path/../Frameworks LDFLAGS=-macosx_version_min 10.9 -rpath @executable_path/../Frameworks

View file

@ -42,7 +42,7 @@ void SimSerial::println(const char *str)
} }
//Used to send serial midi //Used to send serial midi
void SimSerial::write(const uint8_t str) void SimSerial::write(const uint8_t __unused str)
{ {
} }

View file

@ -9,51 +9,52 @@
*/ */
void SimUsbMidi::sendNoteOff(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t cable) void SimUsbMidi::sendNoteOff(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::noteOff] note %03d vel %03d ch %02d\n", note, velocity, channel); printf( "[usbMIDI::noteOff] note %03d vel %03d ch %02d\n", note, velocity, channel);
} }
void SimUsbMidi::sendNoteOn(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t cable) void SimUsbMidi::sendNoteOn(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::noteOn] note %03d vel %03d ch %02d\n", note, velocity, channel); printf( "[usbMIDI::noteOn] note %03d vel %03d ch %02d\n", note, velocity, channel);
} }
void SimUsbMidi::sendPolyPressure(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t cable) void SimUsbMidi::sendPolyPressure(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::polyPressure] note %03d p %03d ch %02d\n", note, pressure, channel); printf( "[usbMIDI::polyPressure] note %03d p %03d ch %02d\n", note, pressure, channel);
} }
void SimUsbMidi::sendAfterTouchPoly(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t cable) void SimUsbMidi::sendAfterTouchPoly(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::afterTouchPoly] note %03d p %03d ch %02d\n", note, pressure, channel); printf( "[usbMIDI::afterTouchPoly] note %03d p %03d ch %02d\n", note, pressure, channel);
} }
void SimUsbMidi::sendControlChange(uint8_t control, uint8_t value, uint8_t channel, uint8_t cable) void SimUsbMidi::sendControlChange(uint8_t control, uint8_t value, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::controlChange] cc %03d val %03d ch %02d\n", control, value, channel); printf( "[usbMIDI::controlChange] cc %03d val %03d ch %02d\n", control, value, channel);
} }
void SimUsbMidi::sendProgramChange(uint8_t program, uint8_t channel, uint8_t cable) void SimUsbMidi::sendProgramChange(uint8_t program, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::programChange] prg %03d ch %02d\n", program, channel); printf( "[usbMIDI::programChange] prg %03d ch %02d\n", program, channel);
} }
void SimUsbMidi::sendAfterTouch(uint8_t pressure, uint8_t channel, uint8_t cable) void SimUsbMidi::sendAfterTouch(uint8_t pressure, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::afterTouch] p %03d ch %02d\n", pressure, channel); printf( "[usbMIDI::afterTouch] p %03d ch %02d\n", pressure, channel);
} }
void SimUsbMidi::sendPitchBend(int value, uint8_t channel, uint8_t cable) void SimUsbMidi::sendPitchBend(int value, uint8_t channel, uint8_t __unused cable)
{ {
printf( "[usbMIDI::pitchBend] pb %05d ch %02d\n", value, channel); printf( "[usbMIDI::pitchBend] pb %05d ch %02d\n", value, channel);
} }
void SimUsbMidi::sendSysEx(uint16_t length, const uint8_t *data, bool hasTerm, uint8_t cable) void SimUsbMidi::sendSysEx(uint16_t length, const uint8_t __unused *data, bool __unused hasTerm, uint8_t __unused cable)
{ {
printf( "[usbMIDI::sysEx] len %d\n", length);
} }
bool SimUsbMidi::read(uint8_t channel) { bool SimUsbMidi::read(uint8_t __unused channel) {
return false; return false;
} }