From abee60d5e1e0f301b672f7ebad0a35bae77084da Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 15 Apr 2007 20:15:32 +1000 Subject: [PATCH] tests/cpp_test.cc : Fix printf format flag. --- ChangeLog | 3 +++ tests/cpp_test.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c2ba6447..d9247fbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * src/wav.c src/wav_w64.c Use audio detect function when 'fmt ' chunk data is suspicious. + * configure.ac + Add ugly hack to remove -Werror from some Makefiles. + 2007-04-14 Erik de Castro Lopo * examples/sndfile-data-trim.c diff --git a/tests/cpp_test.cc b/tests/cpp_test.cc index a2e7195e..815c20f4 100644 --- a/tests/cpp_test.cc +++ b/tests/cpp_test.cc @@ -123,7 +123,7 @@ read_file (const char * filename, int format) } ; if (file.frames () != ARRAY_LEN (sbuffer) * 4) - { printf ("\n\n%s %d : Error : frames %ld should be %lu.\n\n", __func__, __LINE__, + { printf ("\n\n%s %d : Error : frames %ld should be %u.\n\n", __func__, __LINE__, SF_COUNT_TO_LONG (file.frames ()), ARRAY_LEN (sbuffer) * 4 / 2) ; exit (1) ; } ;