From 6bd8687a4537591b321f9766940cfbef317e2760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludwig=20Fr=C3=BChsch=C3=BCtz?= Date: Sat, 6 Nov 2021 18:49:14 +0100 Subject: [PATCH] Fixed compiler warnings --- OSC2AHK/dllmain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OSC2AHK/dllmain.cpp b/OSC2AHK/dllmain.cpp index dbeda60..2711d21 100644 --- a/OSC2AHK/dllmain.cpp +++ b/OSC2AHK/dllmain.cpp @@ -22,6 +22,7 @@ protected: handleOscMsg(m); } catch (osc::Exception& e) { + (void)e; // any parsing errors such as unexpected argument types, or // missing arguments get thrown as exceptions. OutputDebugString(L"ProcessMessage: Error while parsing message: ..."); @@ -497,7 +498,7 @@ int handleOscMsg(const osc::ReceivedMessage& m) /* Debugging function to test messaging. Probably will be removed later. */ DLLEXPORT int testMsg(HWND windowHandle, unsigned int messageID) { - float theFloat = 1.01; + float theFloat = (float)1.01; int lParam = reinterpret_cast(theFloat); PostMessage(hwnd, 0x1002, 0, lParam); //post to message queue