Re: disable Gtk warnings
- From: Owen Taylor <otaylor redhat com>
- To: Murilo Tuvani <murilo_tuvani yahoo com br>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: disable Gtk warnings
- Date: Sat, 07 Feb 2004 13:29:00 -0500
On Sat, 2004-02-07 at 12:44, Murilo Tuvani wrote:
I donÂt agree with the *will* crash because IÂm producing an
aplication and I sometimes apear some warnigs one case, when I pass
NULL to a pointer after make gtk_widget_destroy(), if I donÂt pass it
will fail in tests IÂll make after and if I pass apear the gtk
warnings!
The code to gtk_widget_destroy() looks schematically like:
#ifdef DEBUGGING
if (widget == NULL)
{
print_warning();
return;
}
#endif
/* access fields of 'widget' structure */
So, if you call gtk_widget_destroy() with a NULL pointer, it will
cause a segfault on some GTK+ installations, and a warning on others.
It is not a legal operation on any GTK+ installation.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]