From bc0e0799546bf05483f0c5edbe46141960829ba7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 15 May 2021 22:06:28 +0200 Subject: Make it possible to (only) build unit-test in pararllel. --- test/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Makefile.am b/test/Makefile.am index add962a..6d62314 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -24,7 +24,9 @@ if ENABLE_LV2 TESTS += lv2 endif +noinst_PROGRAMS = $(TESTS) check_PROGRAMS = $(TESTS) + resource_CXXFLAGS = \ -I$(top_srcdir)/test/uunit -DOUTPUT=\"resource\" \ $(SNDFILE_CFLAGS) \ -- cgit v1.2.3 From 7f9f86a75c2ebd7875a57ce87e511e15b75c3b1c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 15 May 2021 22:49:06 +0200 Subject: Add -Wextra to debug compilation flags. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ac65c69..28c492d 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,7 @@ dnl Check for -ffloat-store support dnl =========================== AC_LANG_PUSH([C++]) TMP_CXXFLAGS="$CXXFLAGS" -CXXFLAGS="-Wall -Werror -ffloat-store" +CXXFLAGS="-Wall -Werror -Wextra -ffloat-store" AC_MSG_CHECKING([whether CXX supports -ffloat-store]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [AC_MSG_RESULT([yes]) -- cgit v1.2.3 From 0fcb75e864ff8ed42622249dfdd7af9abfda033d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 22 May 2021 09:37:02 +0200 Subject: This should fix wrong sample selection with two samples. --- src/sample_selection.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sample_selection.cc b/src/sample_selection.cc index 7267faf..1195703 100644 --- a/src/sample_selection.cc +++ b/src/sample_selection.cc @@ -103,9 +103,6 @@ const Sample* SampleSelection::get(level_t level, std::size_t pos) { DEBUG(rand, "%d %d", (int)up_index, (int)down_index); - // at least avoid infinite loops in case of a bug... - if (up_index == samples.size()-1 && down_index == 0) { break; } - std::size_t current_index; if (up_value_lb < down_value_lb) { -- cgit v1.2.3