Resolve MSVC errors and warnings with refactor

This commit is contained in:
Paul Hollinsky
2018-10-22 12:19:33 -04:00
parent 8e6b0d0b0e
commit 9675bb81f7
22 changed files with 36 additions and 9 deletions
+7
View File
@@ -55,6 +55,10 @@ private:
} timestamp;
};
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201) // nameless struct/union
#endif
union CoreMiniStatusBits_t {
struct {
unsigned just_reset : 1;
@@ -75,6 +79,9 @@ private:
};
uint32_t dword;
};
#ifdef _MSC_VER
#pragma warning(pop)
#endif
struct HardwareResetStatusPacket {
uint16_t main_loop_time_25ns;