Chris Sutcliffe wrote:
> 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 Adding (char *) casts for things that are already character strings? Isn't this a problem in gcc? -- hundred-and-one symptoms of being an internet addict: 169. You hire a housekeeper for your home page. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---