From 1c83f12c6810dd4925ab1524b2edcd644d932bf1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Oct 2009 20:41:54 +0000 Subject: Fix warnings. Hopefully that offset is an audio cycle offset, or someone's used the wrong type ;) git-svn-id: svn://localhost/ardour2/branches/3.0@5777 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/ardour/port.h') diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index 5567b2170e..2597fa9601 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -111,7 +111,7 @@ public: virtual void cycle_split () = 0; virtual Buffer& get_buffer (nframes_t nframes, nframes_t offset = 0) = 0; virtual void flush_buffers (nframes_t nframes, nframes64_t /*time*/, nframes_t offset = 0) { - (void) offset; + assert(offset < nframes); } virtual void transport_stopped () {} -- cgit v1.2.3