diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2011-03-28 18:43:05 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2011-03-28 18:43:05 +1100 |
commit | 9b8d1e0f2f7eaa89144d2b680f51eb74785af348 (patch) | |
tree | c8c6e7ccef0450fd1acd7c3fef5a950e38f01c54 /tests/misc_test.c | |
parent | 33cd8bdb465157fd66bad50ee566d73090dd91eb (diff) |
Fix a bunch of compiler warnings with gcc-4.6.
Diffstat (limited to 'tests/misc_test.c')
-rw-r--r-- | tests/misc_test.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/misc_test.c b/tests/misc_test.c index dedfabc..55a30cc 100644 --- a/tests/misc_test.c +++ b/tests/misc_test.c @@ -220,7 +220,6 @@ static void zero_data_test (const char *filename, int format) { SNDFILE *file ; SF_INFO sfinfo ; - int frames ; switch (format & SF_FORMAT_TYPEMASK) { case SF_FORMAT_OGG : @@ -238,8 +237,6 @@ zero_data_test (const char *filename, int format) sfinfo.channels = 1 ; sfinfo.frames = 0 ; - frames = BUFFER_LEN / sfinfo.channels ; - file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; sf_close (file) ; @@ -261,7 +258,6 @@ filesystem_full_test (int format) struct stat buf ; const char *filename = "/dev/full", *errorstr ; - int frames ; #if (defined (WIN32) || defined (_WIN32)) /* Can't run this test on Win32 so return. */ @@ -288,8 +284,6 @@ filesystem_full_test (int format) sfinfo.channels = 1 ; sfinfo.frames = 0 ; - frames = BUFFER_LEN / sfinfo.channels ; - if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) != NULL) { printf ("\n\nLine %d : Error, file should not have openned.\n", __LINE__ - 1) ; exit (1) ; @@ -321,7 +315,6 @@ permission_test (const char *filename, int typemajor) SNDFILE *file ; SF_INFO sfinfo ; const char *errorstr ; - int frames ; /* Make sure errno is zero before doing anything else. */ errno = 0 ; @@ -360,8 +353,6 @@ permission_test (const char *filename, int typemajor) sfinfo.channels = 1 ; sfinfo.frames = 0 ; - frames = BUFFER_LEN / sfinfo.channels ; - if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) != NULL) { printf ("\n\nLine %d : Error, file should not have opened.\n", __LINE__ - 1) ; exit (1) ; |