diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:32:41 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:32:41 -0500 |
commit | 0cca2724311b8df9989dc46efad12bdbe05c3883 (patch) | |
tree | 263a41299101aa9de989192de2d62e113725d494 /libs/ardour/export_channel.cc | |
parent | 342237bf9c71927b5b6017c527a2d54b5c8be250 (diff) |
try to fix various warnings from gcc when optimization flags are enabled
Diffstat (limited to 'libs/ardour/export_channel.cc')
-rw-r--r-- | libs/ardour/export_channel.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |