# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1326474472 0 # Node ID ef7959aae8daf00a63f1b7904d0a0e3a1f02df15 # Parent 2fd9ff675d794863c69dc032568aa4c42a77c872 Clean up some warnings with GCC on OS/2. diff -r 2fd9ff675d79 -r ef7959aae8da os2/dw.c --- a/os2/dw.c Fri Jan 13 17:03:24 2012 +0000 +++ b/os2/dw.c Fri Jan 13 17:07:52 2012 +0000 @@ -4739,20 +4739,20 @@ int height, width; char *buf, *ptr; int basicwidth; - int wrap = WinSendMsg(handle, MLM_QUERYWRAP, 0,0); + int wrap = (int)WinSendMsg(handle, MLM_QUERYWRAP, 0,0); thisheight = 8; basicwidth = thiswidth = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL) + 8; dw_mle_get_size(handle, &bytes, NULL); - ptr = buf = _alloca(bytes + 2); + ptr = buf = alloca(bytes + 2); dw_mle_export(handle, buf, 0, (int)bytes); buf[bytes] = 0; strcat(buf, "\n"); /* MLE */ - while(ptr = strstr(buf, "\n")) + while((ptr = strstr(buf, "\n"))) { ptr[0] = 0; width = 0; @@ -12135,7 +12135,7 @@ WindowData *blah = calloc(sizeof(WindowData), 1); DATETIME dt; HWND tmp = WinCreateWindow(HWND_OBJECT, - CalendarClassName, + (PSZ)CalendarClassName, NULL, WS_VISIBLE, 0,0,2000,1000,