From d6c7ebed24c50910fae21b05dac7f0ab787a1581 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 11 Sep 2011 04:02:40 -0400 Subject: [PATCH] More work on cleaning out compiler warnings. --- src/thread/windows/SDL_systhread.c | 4 ++-- src/video/windows/SDL_windowsevents.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/thread/windows/SDL_systhread.c b/src/thread/windows/SDL_systhread.c index 12d87506a..d907c130c 100644 --- a/src/thread/windows/SDL_systhread.c +++ b/src/thread/windows/SDL_systhread.c @@ -77,7 +77,7 @@ typedef struct ThreadStartParms pfnSDL_CurrentEndThread pfnCurrentEndThread; } tThreadStartParms, *pThreadStartParms; -static DWORD __stdcall +static unsigned __stdcall RunThread(void *data) { pThreadStartParms pThreadParms = (pThreadStartParms) data; @@ -115,7 +115,7 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args) pfnSDL_CurrentEndThread pfnEndThread = _endthreadex; #endif #endif /* SDL_PASSED_BEGINTHREAD_ENDTHREAD */ - unsigned threadid; + DWORD threadid = 0; pThreadStartParms pThreadParms = (pThreadStartParms) SDL_malloc(sizeof(tThreadStartParms)); if (!pThreadParms) { diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 9f7fe9eab..cf382e0d0 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -557,7 +557,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) for (i = 0; i < num_inputs; ++i) { PTOUCHINPUT input = &inputs[i]; - SDL_TouchID touchId = (SDL_TouchID)input->hSource; + const SDL_TouchID touchId = (SDL_TouchID) + ((size_t)input->hSource); if (!SDL_GetTouch(touchId)) { SDL_Touch touch;