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 --- sdl/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sdl/main.c') 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)) { -- cgit v1.2.3