Commit 812bf7bd authored by Jacob Vosmaer's avatar Jacob Vosmaer

Compile with more warnings

parent a5debe96
......@@ -64,7 +64,7 @@ CC = avr-gcc
# Override is only needed by avr-lib build system.
override CFLAGS = -g -Wall $(OPTIMIZE) -std=c99 -mmcu=$(MCU_TARGET) $(DEFS)
override CFLAGS = -g -Wall -Wextra -Werror $(OPTIMIZE) -std=c99 -mmcu=$(MCU_TARGET) $(DEFS)
override LDFLAGS = -Wl,-Map,$(PRG).map
OBJCOPY = avr-objcopy
......
......@@ -118,5 +118,7 @@ mono_pitch_bend(uint16_t bend)
void
mono_update_clock(uint8_t delta)
{
(void) delta;
mono_set_pitch();
}
......@@ -77,6 +77,8 @@ poly_pitch_bend(uint16_t bend)
void
poly_update_clock(uint8_t delta)
{
(void) delta;
for_each_voice(v) {
poly_set_pitch(v, notes[v]);
}
......
......@@ -126,6 +126,8 @@ poly2_pitch_bend(uint16_t bend)
void
poly2_update_clock(uint8_t delta)
{
(void) delta;
for_each_voice(v) {
poly2_set_pitch(v, playing[v]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment