From 47ed1914cc3a17f9a6d175688c80a0cb2c3c1f6e Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 6 Nov 2021 14:03:05 -0500 Subject: [PATCH] Fixed VS2013 attempting to compile VS2019 code --- sp/src/public/haptics/haptic_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sp/src/public/haptics/haptic_utils.cpp b/sp/src/public/haptics/haptic_utils.cpp index 70fe86c4..e6d3288a 100644 --- a/sp/src/public/haptics/haptic_utils.cpp +++ b/sp/src/public/haptics/haptic_utils.cpp @@ -138,9 +138,11 @@ void ConnectHaptics(CreateInterfaceFn appFactory) HookHapticMessages(); } +#if _MSC_VER >= 1925 // deleting haptics results in a warning about deleting something with a non-virtual destructor // big yikes but we can't do anything about it as it's accessed via interface #pragma warning (disable: 5205) +#endif void DisconnectHaptics() {