changeset 1548:ef7959aae8da

Clean up some warnings with GCC on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 13 Jan 2012 17:07:52 +0000
parents 2fd9ff675d79
children ca6be9c48fff
files os2/dw.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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,