Re: Wy does this give this warning ?



On Sat, Mar 08, 2003 at 07:45:07PM -0800, Harring Figueiredo wrote:

103 static void application_quit(){
    104     GtkMessageDialog* dialog = NULL;

GtkWidget *dialog;

    105     dialog = gtk_message_dialog_new (GTK_WINDOW(window1),
    106             GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
    107             GTK_MESSAGE_QUESTION,
    108             GTK_BUTTONS_YES_NO, "%s",
    109             " Are you sure you want to quit? ");
    110     if(gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES){
    111         gtk_widget_destroy (GTK_WIDGET(dialog));

===========================
callbacks.c: In function `application_quit':
callbacks.c:109: warning: assignment from incompatible pointer type
------------------

It says line 109, but it means the whole "line" of code that contains
line 109.  :)

-- 
      Evan Martin
martine cs washington edu
  http://neugierig.org



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