From 3dce51bd8eb2cf1e809efac1fc9fbaa6e836655c Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sat, 12 Dec 2009 14:49:43 +0100 Subject: Removed more warnings. --- test/unalignedassert.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test/unalignedassert.cpp') diff --git a/test/unalignedassert.cpp b/test/unalignedassert.cpp index 2b819417e..c3a07d195 100644 --- a/test/unalignedassert.cpp +++ b/test/unalignedassert.cpp @@ -87,6 +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(_buf)) T; + x[0]; // just in order to silence warnings x->~T(); } #endif -- cgit v1.2.3