diff options
author | David Robillard <d@drobilla.net> | 2006-07-17 21:35:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-17 21:35:46 +0000 |
commit | ddaffbd41661e1bd24a9034331172c5d94f41241 (patch) | |
tree | 5ef741d557bece8e7e9c2464b7941a07a2e44bac | |
parent | 1b8e22760a3f1004fd19495bd10dc878b87c205f (diff) | |
download | ingen-ddaffbd41661e1bd24a9034331172c5d94f41241.tar.gz ingen-ddaffbd41661e1bd24a9034331172c5d94f41241.tar.bz2 ingen-ddaffbd41661e1bd24a9034331172c5d94f41241.zip |
Stricter warning cleanliness
git-svn-id: http://svn.drobilla.net/lad/ingen@90 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | 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 <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); |