Browse Source

Fixed compiler warnings

tags/1.0
Ludwig Frühschütz 3 years ago
parent
commit
6bd8687a45
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      OSC2AHK/dllmain.cpp

+ 2
- 1
OSC2AHK/dllmain.cpp View File

@ -22,6 +22,7 @@ protected:
handleOscMsg(m); handleOscMsg(m);
} }
catch (osc::Exception& e) { catch (osc::Exception& e) {
(void)e;
// any parsing errors such as unexpected argument types, or // any parsing errors such as unexpected argument types, or
// missing arguments get thrown as exceptions. // missing arguments get thrown as exceptions.
OutputDebugString(L"ProcessMessage: Error while parsing message: ..."); 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. */ /* Debugging function to test messaging. Probably will be removed later. */
DLLEXPORT int testMsg(HWND windowHandle, unsigned int messageID) DLLEXPORT int testMsg(HWND windowHandle, unsigned int messageID)
{ {
float theFloat = 1.01;
float theFloat = (float)1.01;
int lParam = reinterpret_cast<int&>(theFloat); int lParam = reinterpret_cast<int&>(theFloat);
PostMessage(hwnd, 0x1002, 0, lParam); //post to message queue PostMessage(hwnd, 0x1002, 0, lParam); //post to message queue


Loading…
Cancel
Save