From 67b05b40e9f03e7f67bcc9bc46d45d622d7b238a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 30 Dec 2013 19:26:14 -0400 Subject: [PATCH] src/io/source_sndfile.c: improve build with -Wdeclaration-after-statement --- src/io/source_sndfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/source_sndfile.c b/src/io/source_sndfile.c index 0951d5e4..ac06881b 100644 --- a/src/io/source_sndfile.c +++ b/src/io/source_sndfile.c @@ -63,6 +63,7 @@ struct _aubio_source_sndfile_t { aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplerate, uint_t hop_size) { aubio_source_sndfile_t * s = AUBIO_NEW(aubio_source_sndfile_t); + SF_INFO sfinfo; if (path == NULL) { AUBIO_ERR("Aborted opening null path\n"); @@ -82,7 +83,6 @@ aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplera s->path = path; // try opening the file, getting the info in sfinfo - SF_INFO sfinfo; AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo)); s->handle = sf_open (s->path, SFM_READ, &sfinfo); -- 2.11.0