Re: svn commit: r1464228 - in /subversion/trunk/subversion/libsvn_ra_serf: sb_bucket.c util.c
From: Daniel Shahaf <danielsh_at_elego.de>
Date: Fri, 5 Apr 2013 11:20:02 +0300
Branko Čibej wrote on Fri, Apr 05, 2013 at 08:14:36 +0200:
That's not true under gcc 4.2 with warn_unused_result:
static int f(void) __attribute__ ((warn_unused_result));
% gcc main.c
> Who's to guarantee that the original author who decided to ignore the
The bug here is ignoring the return value. Whether the cast is present
> What if the semantics of the called function, or the calling code,
Whoever made the incompatible API change to the callee should have
A change to the calling code that failed to stop ignoring the return
> And to respond to Lieven: yes, I (unprintable) well do expect an
Agreed that a comment with the reason should be in place when the reason
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.