From 18e775251a583a2b9000bcf3297d99fdc5035ead Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Feb 2018 09:34:48 +0100 Subject: proto/ft: remove incorrect check The data is aligned because it's inside a union with minimal alignment for `int'. The comment and check are redundant. --- proto-ft/ftnoir_protocol_ft.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'proto-ft') diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 654cd3b1..ae8fe5a2 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -118,10 +118,6 @@ void freetrack::pose(const double* headpose) if ((std::intptr_t(pMemData) & page_size() - 1) != 0) assert(!"proto/freetrack: memory mapping not page aligned"); - // the data happens to be aligned by virtue of element ordering - // inside `FTHeap'. there's no deeper reason behind it. - static_assert((offsetof(FTHeap, table) & sizeof(int) - 1) == 0, ""); - // no atomic access for `char' for (unsigned k = 0; k < 2; k++) store(pMemData->table_ints[k], t.ints[k]); -- cgit v1.2.3