Skip to content

Commit

Permalink
beta36
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Nov 6, 2021
1 parent a338a00 commit 1c5dd84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ TOOLSDIR = tools
FONTSDIR = fonts
OBJDIR = ${BUILDDIR}/obj

CFLAGS = -g -O2 -flto -std=gnu18 -Wall -DVERSION=\"${VERSION}\"
LDFLAGS = -g -O2 -flto -std=gnu18 -Wall
# TODO: Why does -flto fail on GCC 11?
CFLAGS = -g -O3 -std=gnu18 -Wall -DVERSION=\"${VERSION}\"
LDFLAGS = -g -O3 -std=gnu18 -Wall

ifeq (${PLATFORM},mingw32-sdl)
USE_SDL = 1
Expand Down
2 changes: 1 addition & 1 deletion src/audio_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void audio_stream_generate(long time, u8 *stream, int len) {
int i; long j;
int freq_samples_fixed;
int pos_samples_fixed;
int k, note_played;
int k, note_played = 0;
double audio_res;
double audio_curr_time;
double res_to_samples;
Expand Down

0 comments on commit 1c5dd84

Please sign in to comment.