Re: RFC: warnings on ignoring return value on some list operations
- From: Matthias Clasen <mclasen redhat com>
- To: Owen Taylor <otaylor redhat com>
- Cc: "gtk-devel-list gnome org" <gtk-devel-list gnome org>, "Gustavo J. A. M. Carneiro" <gjc inescporto pt>
- Subject: Re: RFC: warnings on ignoring return value on some list operations
- Date: Mon, 28 Nov 2005 10:22:01 -0500
On Fri, 2005-11-25 at 07:09 -0500, Owen Taylor wrote:
> On Thu, 2005-11-24 at 17:19 +0000, Gustavo J. A. M. Carneiro wrote:
> I'm not really opposed to adding a warning to g_list_append() - after
> all, there are no operations on GList where you provably *have* to
> check the result - unlike GSList.
>
> But it does suck that that there is no clear and obvious way to
> suppress the warning. I'd be curious to see what the patch to fix up
> GTK+ after adding the attributes looks like.
>
I just tracked down a bug in GTK+ which was caused by ignoring the
return value of g_list_remove(), so count me in as a proponent of
adding the warnings.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]