mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
silence 'statement has no effect' warning with gcc 4.4
This commit is contained in:
parent
4948448939
commit
46a9cac7fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user