Re: gnome_config_set_vector compile warnings



Try casting users to (const gchar **).  That should get rid of the
warning, and is safe.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Sun, 7 Nov 1999, Aldrin Martoq A. wrote:

> I have:
> 
> gint argcp = g_list_length(boardUser);
> gchar **users = g_malloc(sizeof(gchar *) * argcp);
>:
> gnome_config_set_vector(pathuser->str, argcp, users);
> 
> 
> but when compiling:
> ldata.c: In function `putLboardUsers':
> ldata.c:305: warning: passing arg 3 of `_gnome_config_set_vector' from
> incompatible pointer type
> 
> 
> 
> And everythings works fine... I don't understand why this warning, and I
> hate warnings :-)
> 
> How do I have to make this correctly?
> 
> 
> Aldrin.            "Caution! Under no circumstances confuse the mesh with the
> Area de Ingenieria  interleave operator, except under confusing circumstances!"
> CEC U.Chile         The INTERCAL Programming Language Revised Reference Manual
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]