From: Paul Brossier Date: Mon, 30 Dec 2013 23:26:14 +0000 (-0400) Subject: src/io/source_sndfile.c: improve build with -Wdeclaration-after-statement X-Git-Tag: 0.4.1~102^2~4 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=67b05b40e9f03e7f67bcc9bc46d45d622d7b238a;p=aubio.git src/io/source_sndfile.c: improve build with -Wdeclaration-after-statement --- 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);