Hi.
if_perl.xs contains global function prototype. But gcc 4.x make this occur
error.
if_perl.c:1102:1: error: static declaration of 'XS_VIM_Msg' follows non-static
declaration
if_perl.xs:916:1: note: previous declaration of 'XS_VIM_Msg' was here
if_perl.c:1145:1: error: static declaration of 'XS_VIM_SetOption' follows
non-static declaration
if_perl.xs:917:1: note: previous declaration of 'XS_VIM_SetOption' was here
if_perl.c:1167:1: error: static declaration of 'XS_VIM_DoCommand' follows
non-static declaration
if_perl.xs:918:1: note: previous declaration of 'XS_VIM_DoCommand' was here
if_perl.c:1188:1: error: static declaration of 'XS_VIM_Eval' follows non-static
declaration
if_perl.xs:919:1: note: previous declaration of 'XS_VIM_Eval' was here
if_perl.c:1222:1: error: static declaration of 'XS_VIM_Buffers' follows
non-static declaration
if_perl.xs:920:1: note: previous declaration of 'XS_VIM_Buffers' was here
if_perl.c:1285:1: error: static declaration of 'XS_VIM_Windows' follows
non-static declaration
if_perl.xs:921:1: note: previous declaration of 'XS_VIM_Windows' was here
if_perl.c:1326:1: error: static declaration of 'XS_VIWIN_DESTROY' follows
non-static declaration
if_perl.xs:922:1: note: previous declaration of 'XS_VIWIN_DESTROY' was here
if_perl.c:1353:1: error: static declaration of 'XS_VIWIN_Buffer' follows
non-static declaration
if_perl.xs:923:1: note: previous declaration of 'XS_VIWIN_Buffer' was here
if_perl.c:1384:1: error: static declaration of 'XS_VIWIN_SetHeight' follows
non-static declaration
if_perl.xs:924:1: note: previous declaration of 'XS_VIWIN_SetHeight' was here
if_perl.c:1424:1: error: static declaration of 'XS_VIWIN_Cursor' follows
non-static declaration
if_perl.xs:925:1: note: previous declaration of 'XS_VIWIN_Cursor' was here
if_perl.c:1473:1: error: static declaration of 'XS_VIBUF_DESTROY' follows
non-static declaration
if_perl.xs:926:1: note: previous declaration of 'XS_VIBUF_DESTROY' was here
if_perl.c:1500:1: error: static declaration of 'XS_VIBUF_Name' follows
non-static declaration
if_perl.xs:927:1: note: previous declaration of 'XS_VIBUF_Name' was here
if_perl.c:1535:1: error: static declaration of 'XS_VIBUF_Number' follows
non-static declaration
if_perl.xs:928:1: note: previous declaration of 'XS_VIBUF_Number' was here
if_perl.c:1566:1: error: static declaration of 'XS_VIBUF_Count' follows
non-static declaration
if_perl.xs:929:1: note: previous declaration of 'XS_VIBUF_Count' was here
if_perl.c:1597:1: error: static declaration of 'XS_VIBUF_Get' follows
non-static declaration
if_perl.xs:930:1: note: previous declaration of 'XS_VIBUF_Get' was here
if_perl.c:1642:1: error: static declaration of 'XS_VIBUF_Set' follows
non-static declaration
if_perl.xs:931:1: note: previous declaration of 'XS_VIBUF_Set' was here
if_perl.c:1703:1: error: static declaration of 'XS_VIBUF_Delete' follows
non-static declaration
if_perl.xs:932:1: note: previous declaration of 'XS_VIBUF_Delete' was here
if_perl.c:1780:1: error: static declaration of 'XS_VIBUF_Append' follows
non-static declaration
if_perl.xs:933:1: note: previous declaration of 'XS_VIBUF_Append' was here
mingw32-make: *** [obj/if_perl.o] Error 1
Here is a patch to fix.
diff -r f1f6ac67acd8 src/if_perl.xs
--- a/src/if_perl.xs Wed Feb 29 19:20:03 2012 +0100
+++ b/src/if_perl.xs Tue Mar 13 17:15:51 2012 +0900
@@ -913,24 +913,6 @@
win_T *win_find_nr(int n) { return curwin; }
#endif
-XS(XS_VIM_Msg);
-XS(XS_VIM_SetOption);
-XS(XS_VIM_DoCommand);
-XS(XS_VIM_Eval);
-XS(XS_VIM_Buffers);
-XS(XS_VIM_Windows);
-XS(XS_VIWIN_DESTROY);
-XS(XS_VIWIN_Buffer);
-XS(XS_VIWIN_SetHeight);
-XS(XS_VIWIN_Cursor);
-XS(XS_VIBUF_DESTROY);
-XS(XS_VIBUF_Name);
-XS(XS_VIBUF_Number);
-XS(XS_VIBUF_Count);
-XS(XS_VIBUF_Get);
-XS(XS_VIBUF_Set);
-XS(XS_VIBUF_Delete);
-XS(XS_VIBUF_Append);
XS(boot_VIM);
static void
--
--
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