-----Why this error info turn up?



Dear gtk guys,

   When I compilling my codes, the below info turn up. The compiling is
finished successfully
I am curious about the error info.

Sombody can explain in details?

Bob Zhao

main.c: In function `CreateButtonInTableFull0':
main.c:1053: warning: passing arg 2 of `gtk_container_add' discards
qualifiers from pointer target type
main.c: In function `CreateButtonInTableFull1':
main.c:1080: warning: passing arg 2 of `gtk_container_add' discards
qualifiers from pointer target type
arca-gcc  main.o check_result.o misc.o kb.o ps2.o newdialog.o
common_base.o ./usb/usb-test-nof.o ./lcd/c

----relevan source codes--------
   1050                         index = i*2+ii;
   1051                         label [index] = gtk_label_new
(StringArray [i*2+ii]);
   1052                         button [index] = gtk_button_new ();
   1053                         gtk_container_add (GTK_CONTAINER (button
[index]), label [index]);
   1054                         gtk_table_attach_defaults (GTK_TABLE
(table), button [index], ii, ii+1, i, i+1);
   1055                         gtk_signal_connect (GTK_OBJECT (button
[index]), "clicked",
   1056                                              GTK_SIGNAL_FUNC
(mainboard_check_func_array [i*2+ii]), NULL);
   1057                         if (i==0 && ii==0)
   1058                         {




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