From 47a2eb47a0cb96ee7624e8c73b20ca1f0d6d2945 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Wed, 28 May 2014 00:16:33 -0700 Subject: [PATCH] msvc C initializers return int...fix EnableXSaveWorkaround when rax doesn't implicitly equal zero. --- Source/Core/Common/XSaveWorkaround.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/XSaveWorkaround.cpp b/Source/Core/Common/XSaveWorkaround.cpp index b54f33eb4b..223eb93b7f 100644 --- a/Source/Core/Common/XSaveWorkaround.cpp +++ b/Source/Core/Common/XSaveWorkaround.cpp @@ -7,7 +7,7 @@ #include #include -void EnableXSaveWorkaround() +int __cdecl EnableXSaveWorkaround() { // Some Windows environments may have hardware support for AVX/FMA, // but the OS does not support it. The CRT math library does not support @@ -20,6 +20,8 @@ void EnableXSaveWorkaround() { _set_FMA3_enable(0); } + + return 0; } // Create a segment which is recognized by the linker to be part of the CRT