eina-cxx: remove a warning.

Summary: When assert is disabled 'diff' variable was unused.

Reviewers: tasn, cedric

CC: JackDanielZ, smohanty, felipealmeida, cedric

Differential Revision: https://phab.enlightenment.org/D893

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
This commit is contained in:
Savio Sena 2014-05-24 02:24:42 +02:00 committed by Cedric Bail
parent a4bb4688fc
commit e68225ae69
1 changed files with 1 additions and 0 deletions

View File

@ -556,6 +556,7 @@ public:
new (&*first++) T(t);
std::size_t diff = last - first;
assert(diff == _array->len - index - n);
static_cast<void>(diff);
while(first != last)
{
new (&*first++) T(*old_first);