aboutsummaryrefslogtreecommitdiff
path: root/sdl/main.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-01-06 23:00:54 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-01-06 23:00:54 +0900
commit1d2a45e348857f65cc7590b2e7f1b39c30216f92 (patch)
treecf99937e875dba4ca0ebc0a5f1245fdecd7dbe20 /sdl/main.c
parent534f7d138dd05ce938447ec8fe625899f3a4c857 (diff)
fixed compiler warnings for sdl
Diffstat (limited to 'sdl/main.c')
-rw-r--r--sdl/main.c3
1 files changed, 3 insertions, 0 deletions
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)) {