diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2018-01-06 23:00:54 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2018-01-06 23:00:54 +0900 |
commit | 1d2a45e348857f65cc7590b2e7f1b39c30216f92 (patch) | |
tree | cf99937e875dba4ca0ebc0a5f1245fdecd7dbe20 /libopna/opnafm.c | |
parent | 534f7d138dd05ce938447ec8fe625899f3a4c857 (diff) |
fixed compiler warnings for sdl
Diffstat (limited to 'libopna/opnafm.c')
-rw-r--r-- | libopna/opnafm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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++) { |