Re: [patch] add G_GNUC_WARNUNCHECKED define


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


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