summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/libs/engine/Buffer.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index dc636276..901e42e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,8 +83,8 @@ AC_ARG_ENABLE(strict,
[strict="$enableval"])
if test "$strict" = "yes"; then
# Stupid Gtkmm won't build with -pedantic
- CFLAGS="$CFLAGS -ansi -Wall -Wconversion -Winit-self"
- CXXFLAGS="$CXXFLAGS -ansi -Wall -Wconversion -Winit-self -Woverloaded-virtual -Wsign-promo"
+ CFLAGS="$CFLAGS -ansi -Wall -Wextra -Wno-unused-parameter -Wconversion -Winit-self"
+ CXXFLAGS="$CXXFLAGS -ansi -Wall -Wextra -Wno-unused-parameter -Wconversion -Winit-self -Woverloaded-virtual -Wsign-promo"
fi
# Bolt on a few specific flags to CFLAGS that should always be used
diff --git a/src/libs/engine/Buffer.cpp b/src/libs/engine/Buffer.cpp
index a0feeec2..a7f11e8f 100644
--- a/src/libs/engine/Buffer.cpp
+++ b/src/libs/engine/Buffer.cpp
@@ -133,7 +133,6 @@ template <typename T>
void
Buffer<T>::set(T val, size_t start_sample, size_t end_sample)
{
- assert(start_sample >= 0);
assert(end_sample >= start_sample);
assert(end_sample < m_size);
assert(m_data != NULL);
@@ -153,7 +152,6 @@ template <typename T>
void
Buffer<T>::scale(T val, size_t start_sample, size_t end_sample)
{
- assert(start_sample >= 0);
assert(end_sample >= start_sample);
assert(end_sample < m_size);
assert(m_data != NULL);
@@ -173,7 +171,6 @@ template <typename T>
void
Buffer<T>::copy(const Buffer<T>* src, size_t start_sample, size_t end_sample)
{
- assert(start_sample >= 0);
assert(end_sample >= start_sample);
assert(end_sample < m_size);
assert(src != NULL);
@@ -198,7 +195,6 @@ template <typename T>
void
Buffer<T>::accumulate(const Buffer<T>* const src, size_t start_sample, size_t end_sample)
{
- assert(start_sample >= 0);
assert(end_sample >= start_sample);
assert(end_sample < m_size);
assert(src != NULL);