From 29bf7f94eab413e25914c3939d7ff19ef0cd4c48 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 28 Oct 2017 17:30:06 +0200 Subject: freetrackclient: mark volatile --- freetrackclient/fttypes.h | 6 +++--- proto-ft/ftnoir_protocol_ft.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/freetrackclient/fttypes.h b/freetrackclient/fttypes.h index 033d183e..a3abea54 100644 --- a/freetrackclient/fttypes.h +++ b/freetrackclient/fttypes.h @@ -26,7 +26,7 @@ /* only 6 headpose floats and the data id are filled -sh */ typedef struct FTData__ { - int32_t DataID; + uint32_t DataID; int32_t CamWidth; int32_t CamHeight; /* virtual pose */ @@ -52,7 +52,7 @@ typedef struct FTData__ { float Y3; float X4; float Y4; -} FTData; +} volatile FTData; /* we add some shit at the end for other legacy proto, sadly */ @@ -65,4 +65,4 @@ typedef struct FTHeap__ { int32_t table_ints[2]; }; int32_t GameID2; -} FTHeap; +} volatile FTHeap; diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index ce11d7d3..1e704c72 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -125,7 +125,7 @@ void freetrack::pose(const double* headpose) } store(ft->GameID2, id); - store(data->DataID, 0); + store((std::int32_t volatile&) data->DataID, 0); intGameID = id; -- cgit v1.2.3