Skip to content

Commit

Permalink
Warnings are errors for main build
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Sep 9, 2024
1 parent d55d7a8 commit d153407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ include $(SGDK)/makefile.gen

EXTRA_FLAGS:=-DBUILD='"$(BUILD)"' \
-Wl,--wrap=SYS_enableInts \
-Wl,--wrap=SYS_disableInts
-Wl,--wrap=SYS_disableInts \
-Werror \
-Wextra

ifeq ($(ROM_TYPE), MEGAWIFI)
EXTRA_FLAGS += -DMEGAWIFI
Expand Down
2 changes: 1 addition & 1 deletion src/midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ static void processChannelGlide(DeviceChannel* chan, u16 portamentoTime)
return;
}

s16 effectiveIncrement;
s16 effectiveIncrement = 0;

if (chan->glideTargetPitch > chan->pitch) {
effectiveIncrement = portamentoTime;
Expand Down

0 comments on commit d153407

Please sign in to comment.