Hey,
Below is a small patch for GvimExt to correct some warnings when
compiled with GCC 4.
Index: gvimext.cpp
===================================================================
RCS file: /cvsroot/vim/vim7/src/GvimExt/gvimext.cpp,v
retrieving revision 1.6
diff -u -r1.6 gvimext.cpp
--- gvimext.cpp 10 May 2007 19:09:38 -0000 1.6
+++ gvimext.cpp 15 Aug 2007 01:20:05 -0000
@@ -69,14 +69,14 @@
// Registry didn't work, use the search path.
if (name[0] == 0)
- strcpy(name, searchpath("gvim.exe"));
+ strcpy(name, searchpath((char*)"gvim.exe"));
if (!runtime)
{
// Only when looking for the executable, not the runtime dir, we can
// search for the batch file or a name without a path.
if (name[0] == 0)
- strcpy(name, searchpath("gvim.bat"));
+ strcpy(name, searchpath((char*)"gvim.bat"));
if (name[0] == 0)
strcpy(name, "gvim"); // finds gvim.bat or gvim.exe
@@ -152,9 +152,9 @@
FARPROC *ptr;
} libintl_entry[] =
{
- {"gettext", (FARPROC*)&dyn_libintl_gettext},
- {"textdomain", (FARPROC*)&dyn_libintl_textdomain},
- {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
+ {(char*)"gettext", (FARPROC*)&dyn_libintl_gettext},
+ {(char*)"textdomain", (FARPROC*)&dyn_libintl_textdomain},
+ {(char*)"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
{NULL, NULL}
};
@@ -835,7 +835,7 @@
(LPTSTR)location) > (HINSTANCE)32)
return location;
}
- return "";
+ return (char*)"";
}
# endif
#endif
Cheers!
Chris
--
Chris Sutcliffe
http://ir0nh34d.googlepages.com
http://ir0nh34d.blogspot.com
http://emergedesktop.org
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---