From ddaffbd41661e1bd24a9034331172c5d94f41241 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 17 Jul 2006 21:35:46 +0000 Subject: Stricter warning cleanliness git-svn-id: http://svn.drobilla.net/lad/ingen@90 a436a847-0d15-0410-975c-d299462d15a1 --- configure.ac | 4 ++-- src/libs/engine/Buffer.cpp | 4 ---- 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 void Buffer::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 void Buffer::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 void Buffer::copy(const Buffer* 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 void Buffer::accumulate(const Buffer* 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); -- cgit v1.2.1