# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301145457 0 # Node ID eaaef18d5b21e2596ef1f9043e48999be936922d # Parent 00fa951abeb550ace8f2f794dac6aea34beeb8f9 Fix various compiler warnings on OS/2. diff -r 00fa951abeb5 -r eaaef18d5b21 os2/dw.c --- a/os2/dw.c Sat Mar 26 13:00:47 2011 +0000 +++ b/os2/dw.c Sat Mar 26 13:17:37 2011 +0000 @@ -909,7 +909,8 @@ /* If we have a notebook we resize the page again. */ if(strncmp(tmpbuf, "#40", 4)==0) { - unsigned long x, y, width, height; + long x, y; + unsigned long width, height; ULONG page = (ULONG)WinSendMsg(hwnd, BKM_QUERYPAGEID, 0, MPFROM2SHORT(BKA_FIRST, BKA_MAJOR)); while(page) @@ -2752,7 +2753,8 @@ PAGESELECTNOTIFY *psn = (PAGESELECTNOTIFY *)mp2; HWND pagehwnd = (HWND)WinSendMsg(psn->hwndBook, BKM_QUERYPAGEWINDOWHWND, MPFROMLONG(psn->ulPageIdNew), 0); Box *pagebox = (Box *)WinQueryWindowPtr(pagehwnd, QWP_USER); - unsigned long x, y, width, height; + long x, y; + unsigned long width, height; RECTL rc; if(pagebox && psn->ulPageIdNew != psn->ulPageIdCur) @@ -9176,7 +9178,7 @@ */ char *dw_clipboard_get_text() { - return ""; + return NULL; } /* @@ -9187,7 +9189,9 @@ */ void dw_clipboard_set_text( char *str, int len ) { - return; + str = str; + len = len; + return; } /*