Hi, On Aug 18, 2007, at 5:00 PM, Bram Moolenaar wrote: > Problem: Compiler warnings for using "const char *" for "char *". > Solution: Add type casts. (Chris Sutcliffe)
at least in C++. this is a very dangerous patch. If you cast a const char* to a char* and then modify the char*, you get undefined behaviour (I guess this is not a problem now, but if searchpath() is changed to modify its argument array in the future, then this will introduce a bug). I don't know if this is true in C as well, does someone know? Nico --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
