Re: [gtk-list] *REALLY* easy question for ya..



>I don't like compiler warnings, and I've got one I can't seem to get rid
>of.  Given the following code:
>
>-->
>gint bounceSlider(gpointer *data);
>
>(and later on)
>
>trigger = gtk_timeout_add(250, bounceSlider, v_error);
>-->
>
>I'm getting a "warning: passing arg 2 of `gtk_timeout_add' from 
>incompatible pointer type" message.  None of the gtk_timeout_add()
>examples I've seen cast the second arg to anything special.  What is wrong
>with this?

    Nothing is really wrong with that. If you want want to get rid of this
    waring you should cast the arg 2 to (GtkFunction). But since everybody 
    does not really take this seriously, you can just ignore (and focus on 
    more important problems, such as the interface usability, and so on :)
>
>Dan 
> ____    Kressin   ____   .-----------------------------------. 
>/___ \____________/ __ \  | dkressin@acm.org                  |
>    \  \    /      /  \ | | Lead Programmer/Analyst           |
> ___/ __\/\/rench_ \__/ | | University of Wisconsin - Oshkosh |
>\____/            \____/  | www.mio.uwosh.edu/~kressd11/      |
>                          `-----------------------------------'

--
__________________________________________________________________________
   Emmanuel DELOGET [pixel] pixel@{dotcom.fr,epita.fr}  ----  DotCom SA
         http://www.epita.fr/~pixel | http://www.dotcom.fr/~pixel
"On the last day, God created Linux. And Microsoft won its antitrust case"
--------------------------------------------------------------------------




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