From 1d2a45e348857f65cc7590b2e7f1b39c30216f92 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 6 Jan 2018 23:00:54 +0900 Subject: fixed compiler warnings for sdl --- libopna/opnafm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libopna/opnafm.c') diff --git a/libopna/opnafm.c b/libopna/opnafm.c index dc19b6d..7555ef3 100644 --- a/libopna/opnafm.c +++ b/libopna/opnafm.c @@ -607,6 +607,7 @@ void opna_fm_writereg(struct opna_fm *fm, unsigned reg, unsigned val) { } } +#ifdef LIBOPNA_ENABLE_OSCILLO static int gcd(int a, int b) { if (a < b) { int t = a; @@ -621,6 +622,7 @@ static int gcd(int a, int b) { } return b; } +#endif void opna_fm_mix(struct opna_fm *fm, int16_t *buf, unsigned samples, struct oscillodata *oscillo, unsigned offset) { @@ -646,6 +648,9 @@ void opna_fm_mix(struct opna_fm *fm, int16_t *buf, unsigned samples, } } } +#else + (void)oscillo; + (void)offset; #endif unsigned level[6] = {0}; for (unsigned i = 0; i < samples; i++) { -- cgit v1.2.3