Hi,

When I compile on Cygwin, I get following warnings:

mbyte.c: In function 'encname2codepage':
mbyte.c:4111:2: warning: pointer targets in passing argument 1 of 'atoi' differ 
in signedness [-Wpointer-sign]
In file included from os_unix.h:33:0,
                 from vim.h:271,
                 from mbyte.c:80:
/usr/include/stdlib.h:66:5: note: expected 'const char *' but argument is of 
type 'char_u *'
ui.c: In function 'clip_gen_own_selection':
ui.c:1401:5: warning: implicit declaration of function 'clip_mch_own_selection' 
[-Wimplicit-function-declaration]
ui.c: In function 'clip_gen_lose_selection':
ui.c:1417:5: warning: implicit declaration of function 
'clip_mch_lose_selection' [-Wimplicit-function-declaration]
ui.c: In function 'clip_gen_set_selection':
ui.c:1433:5: warning: implicit declaration of function 'clip_mch_set_selection' 
[-Wimplicit-function-declaration]
ui.c: In function 'clip_gen_request_selection':
ui.c:1449:5: warning: implicit declaration of function 
'clip_mch_request_selection' [-Wimplicit-function-declaration]

Attached patch fixes them.

Thanks,
Ken Takata

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


# HG changeset patch
# Parent c9bbc5ab547b88d47b9f9b8aba29f0344e1a30f0
diff --git a/src/mbyte.c b/src/mbyte.c
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4108,7 +4108,7 @@
 	p += 6;
 
     if (p[0] == 'c' && p[1] == 'p')
-	cp = atoi(p + 2);
+	cp = atoi((char *)p + 2);
     else if ((idx = enc_canon_search(p)) >= 0)
 	cp = enc_canon_table[idx].codepage;
     else
diff --git a/src/ui.c b/src/ui.c
--- a/src/ui.c
+++ b/src/ui.c
@@ -18,6 +18,12 @@
 
 #include "vim.h"
 
+#ifdef FEAT_CYGWIN_WIN32_CLIPBOARD
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+# include "winclip.pro"
+#endif
+
     void
 ui_write(s, len)
     char_u  *s;

Raspunde prin e-mail lui