Re: g_error_free() warning on null pointer
- From: Sébastien Wilmet <swilmet gnome org>
- To: Michael McConville <mmcconv1 sccs swarthmore edu>
- Cc: Simon McVittie <simon mcvittie collabora co uk>, gtk-devel-list gnome org
- Subject: Re: g_error_free() warning on null pointer
- Date: Tue, 1 Sep 2015 06:38:54 +0200
On Mon, Aug 31, 2015 at 11:03:40PM -0400, Michael McConville wrote:
1) print an annoying warning
Not always, as Simon explained already, the g_return_if_fail()/...
functions can be disabled, in which case the program continues its
execution and will usually crash.
See the --enable-debug configure option of GLib:
https://developer.gnome.org/glib/unstable/glib-building.html
In the docs, if it is not mentioned whether NULL is accepted or not, it
means that it is not supported. Except when the documentation needs to
be fixed, of course, which can happen from time to time.
--
Sébastien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]