Re: [patch] add G_GNUC_WARNUNCHECKED define
- From: Sven Neumann <sven gimp org>
- To: Federico Mena Quintero <federico ximian com>
- Cc: Owen Taylor <otaylor redhat com>, Arjan van de Ven <arjanv redhat com>, GTK+ development mailing list <gtk-devel-list gnome org>
- Subject: Re: [patch] add G_GNUC_WARNUNCHECKED define
- Date: 08 Jul 2004 12:23:30 +0200
Hi,
Federico Mena Quintero <federico ximian com> writes:
> Isn't it enough of a rule to say that all functions that return new
> references to objects or newly-allocated memory should be marked with
> this attribute?
>
> E.g. gtk_file_chooser_get_filename() would be one, but not
> gtk_entry_get_text().
We already have G_CONST_RETURN to indicate this difference. Do you
really want to clutter the API with G_GNUC_WARNUNCHECKED? I don't
think that's a good idea in general even though it would certainly be
correct.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]