From 0cca2724311b8df9989dc46efad12bdbe05c3883 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 4 Nov 2013 21:32:41 -0500 Subject: try to fix various warnings from gcc when optimization flags are enabled --- libs/ardour/export_channel.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/export_channel.cc') diff --git a/libs/ardour/export_channel.cc b/libs/ardour/export_channel.cc index 82e5d80244..8c5a7e4abe 100644 --- a/libs/ardour/export_channel.cc +++ b/libs/ardour/export_channel.cc @@ -239,7 +239,11 @@ RouteExportChannel::read (Sample const *& data, framecnt_t frames) const { assert(processor); AudioBuffer const & buffer = processor->get_capture_buffers().get_audio (channel); +#ifndef NDEBUG + (void) frames; +#else assert (frames <= (framecnt_t) buffer.size()); +#endif data = buffer.data(); } -- cgit v1.2.3