aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/fmplayer_file_unix.c1
-rw-r--r--libopna/opna.c1
-rw-r--r--libopna/opnafm.c5
-rw-r--r--libopna/opnassg.c3
-rw-r--r--sdl/main.c3
5 files changed, 13 insertions, 0 deletions
diff --git a/common/fmplayer_file_unix.c b/common/fmplayer_file_unix.c
index d6fb4ed..3360577 100644
--- a/common/fmplayer_file_unix.c
+++ b/common/fmplayer_file_unix.c
@@ -127,5 +127,6 @@ void *fmplayer_path_dup(const void *path) {
}
char *fmplayer_path_filename_sjis(const void *path) {
+ (void)path;
return 0;
}
diff --git a/libopna/opna.c b/libopna/opna.c
index 8998a59..5c87127 100644
--- a/libopna/opna.c
+++ b/libopna/opna.c
@@ -44,6 +44,7 @@ void opna_mix_oscillo(struct opna *opna, int16_t *buf, unsigned samples, struct
struct oscillodata *oscillofm = oscillo ? &oscillo[0] : 0;
struct oscillodata *oscillossg = oscillo ? &oscillo[6] : 0;
#else
+ (void)oscillo;
struct oscillodata *oscillofm = 0, *oscillossg = 0;
unsigned offset = 0;
#endif
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++) {
diff --git a/libopna/opnassg.c b/libopna/opnassg.c
index ee6498a..404be59 100644
--- a/libopna/opnassg.c
+++ b/libopna/opnassg.c
@@ -316,6 +316,9 @@ void opna_ssg_mix_55466(
}
}
}
+#else
+ (void)oscillo;
+ (void)offset;
#endif
unsigned level[3] = {0};
for (int i = 0; i < samples; i++) {
diff --git a/sdl/main.c b/sdl/main.c
index af877d8..004c8fb 100644
--- a/sdl/main.c
+++ b/sdl/main.c
@@ -41,6 +41,7 @@ static struct {
};
static void audiocb(void *ptr, Uint8 *bufptr, int len) {
+ (void)ptr;
int frames = len / (sizeof(int16_t)*2);
int16_t *buf = (int16_t *)bufptr;
memset(buf, 0, len);
@@ -74,6 +75,8 @@ static void openfile(const char *path) {
}
int main(int argc, char **argv) {
+ (void)argc;
+ (void)argv;
if (__builtin_cpu_supports("sse2")) opna_ssg_sinc_calc_func = opna_ssg_sinc_calc_sse2;
fft_init_table();
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) {