Ken Takata wrote:
> I got the following warnings when I build with MinGW 4.5.3:
> ----------
> os_mswin.c:187:5: warning: '_chdrive' redeclared without dllimport attribute:
> previous dllimport ignored
> os_win32.c:166:1: warning: initialization from incompatible pointer type
> os_win32.c: In function 'sub_process_writer':
> os_win32.c:3449:3: warning: passing argument 4 of 'WriteFile' from
> incompatible pointer type
> /usr/i686-w64-mingw32/sys-root/mingw/include/winbase.h:1443:29: note:
> expected 'LPDWORD' but argument is of type 'int *'
> In file included from gui_w32.c:47:0:
> gui_w48.c:3228:1: warning: cast from pointer to integer of different size
> gui_w48.c:3230:1: warning: cast from pointer to integer of different size
> gui_w48.c:3231:1: warning: cast from pointer to integer of different size
> gui_w48.c:3232:1: warning: cast from pointer to integer of different size
> gui_w48.c:3233:1: warning: cast from pointer to integer of different size
> gui_w48.c:3234:1: warning: cast from pointer to integer of different size
> gui_w48.c:3235:1: warning: cast from pointer to integer of different size
> gui_w48.c:3237:1: warning: cast from pointer to integer of different size
> gui_w48.c:3241:1: warning: cast from pointer to integer of different size
> gui_w48.c:3242:1: warning: cast from pointer to integer of different size
> gui_w48.c:3243:1: warning: cast from pointer to integer of different size
> gui_w48.c:3244:1: warning: cast from pointer to integer of different size
> gui_w48.c:3245:1: warning: cast from pointer to integer of different size
> gui_w48.c:3246:1: warning: cast from pointer to integer of different size
> gui_w48.c:3247:1: warning: cast from pointer to integer of different size
> gui_w48.c:3248:1: warning: cast from pointer to integer of different size
> gui_w48.c: In function 'mch_set_mouse_shape':
> gui_w48.c:3261:1: warning: cast from pointer to integer of different size
> gui_w32.c: In function 'gui_mch_prepare':
> gui_w32.c:1298:19: warning: assignment from incompatible pointer type
> gui_w32.c:1305:19: warning: assignment from incompatible pointer type
> gui_w32.c: In function 'gui_mch_init':
> gui_w32.c:1619:0: warning: "HandleToLong" redefined
> /usr/i686-w64-mingw32/sys-root/mingw/include/basetsd.h:106:0: note: this is
> the location of the previous definition
> ----------
>
> Attached patch fixes them. (Also checked with MSVC10)
Thanks. I would appreciate it if a few people tried out this patch with
other compilers.
--
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
Linux, etc, and those who know COBOL. It gets very difficult for me at
parties, not knowing which group to socialise with :-)
Sitaram Chamarty
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php