Re: RFC: warnings on ignoring return value on some list operations

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.


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