GNOME Bugzilla – Bug 417811
argv should be const in g_spawn declaration
Last modified: 2007-05-10 11:59:18 UTC
Hi, Jasen Betts reported in Debian bug http://bugs.debian.org/414655: """ the declarations of g_spawn_asnyc (etc) (http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html#g-spaw n-sync) shold probably have argv and envp declared as const gchar ** argv or even const gchar * const * argv Unless they modify those arrays. (in which case the modifications should be documented) """ Bye,
One of many places const doesn't work in C, there will be a warning if someone passes in "char**" without const if you try to do this. There's a bunch of discussion in gtk-devel-list archives and a standing library policy on this, feel free to go read it all...
So, WONTFIXing.