r4119 - in trunk: . tests/bse tools
- From: stw svn gnome org
- To: svn-commits-list gnome org
- Subject: r4119 - in trunk: . tests/bse tools
- Date: Sun, 3 Dec 2006 07:56:49 -0500 (EST)
Author: stw
Date: 2006-12-03 07:56:47 -0500 (Sun, 03 Dec 2006)
New Revision: 4119
Modified:
trunk/ChangeLog
trunk/tests/bse/filtertest.cc
trunk/tools/bsefcompare.cc
Log:
Sun Dec 3 13:52:52 2006 Stefan Westerfeld <stefan space twc de>
* tests/bse/filtertest.cc:
* tools/bsefcompare.cc: Use "%zd" when formatting size_t values with
printf. This avoids compiler warnings.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-03 12:51:13 UTC (rev 4118)
+++ trunk/ChangeLog 2006-12-03 12:56:47 UTC (rev 4119)
@@ -1,5 +1,11 @@
-Sun Dec 3 10:34:13 2006 Stefan Westerfeld <stefan space twc de>
+Sun Dec 3 13:52:52 2006 Stefan Westerfeld <stefan space twc de>
+ * tests/bse/filtertest.cc:
+ * tools/bsefcompare.cc: Use "%zd" when formatting size_t values with
+ printf. This avoids compiler warnings.
+
+Sun Dec 3 10:34:13 2006 Stefan Westerfeld <stefan space twc de>
+
* tools/bsefextract.cc: Added code to free feature data properly. This
change also fixes compiler warnings on gcc < 4.2, because a virtual
destructor was added thet was missing before.
Modified: trunk/tests/bse/filtertest.cc
===================================================================
--- trunk/tests/bse/filtertest.cc 2006-12-03 12:51:13 UTC (rev 4118)
+++ trunk/tests/bse/filtertest.cc 2006-12-03 12:56:47 UTC (rev 4119)
@@ -367,7 +367,7 @@
fprintf (gp_file, "H(z)=%s/%s\n", bse_poly_str (m_order, &m_a[0], "z"),
bse_poly_str (m_order, &m_b[0], "z"));
fprintf (gp_file, "load '../../bse/tests/filter-defs.gp'\n");
- fprintf (gp_file, "call '../../bse/tests/arrows.gp' %d", m_gp_arrows.size());
+ fprintf (gp_file, "call '../../bse/tests/arrows.gp' %zd", m_gp_arrows.size());
for (set<double>::iterator ai = m_gp_arrows.begin(); ai != m_gp_arrows.end(); ai++)
fprintf (gp_file, " %f", *ai);
fprintf (gp_file, "\n");
Modified: trunk/tools/bsefcompare.cc
===================================================================
--- trunk/tools/bsefcompare.cc 2006-12-03 12:51:13 UTC (rev 4118)
+++ trunk/tools/bsefcompare.cc 2006-12-03 12:56:47 UTC (rev 4119)
@@ -649,8 +649,8 @@
if (file1.feature_values.size() != file2.feature_values.size())
{
g_printerr ("%s: can't compare files\n", options.program_name.c_str());
- g_printerr (" * file \"%s\" contains %ld feature values\n", file1.filename.c_str(), file1.feature_values.size());
- g_printerr (" * file \"%s\" contains %ld feature values\n", file2.filename.c_str(), file2.feature_values.size());
+ g_printerr (" * file \"%s\" contains %zd feature values\n", file1.filename.c_str(), file1.feature_values.size());
+ g_printerr (" * file \"%s\" contains %zd feature values\n", file2.filename.c_str(), file2.feature_values.size());
exit (1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]