Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
More work on cleaning out compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 11, 2011
1 parent e111314 commit d6c7ebe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/thread/windows/SDL_systhread.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/video/windows/SDL_windowsevents.c
Expand Up @@ -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;

Expand Down

0 comments on commit d6c7ebe

Please sign in to comment.