silence 'statement has no effect' warning with gcc 4.4

This commit is contained in:
Benoit Jacob 2009-12-14 23:31:00 -05:00
parent 4948448939
commit 46a9cac7fb

View File

@ -87,7 +87,7 @@ void construct_at_boundary(int boundary)
_buf += (16 - (_buf % 16)); // make 16-byte aligned
_buf += boundary; // make exact boundary-aligned
T *x = ::new(reinterpret_cast<void*>(_buf)) T;
x[0]; // just in order to silence warnings
x[0].setZero(); // just in order to silence warnings
x->~T();
}
#endif