[Python-Dev] RE: [Python-checkins] python/dist/src/Objects
listobject.c, 2.218, 2.219
Jeremy Hylton
jhylton at gmail.com
Tue Aug 3 14:51:36 CEST 2004
On Tue, 03 Aug 2004 11:48:24 +0200, Sjoerd Mullender <sjoerd at acm.org> wrote:
> This is indeed perverted. Another option is to add a statement
> (void) status;
> somewhere to the function and to remove the status++ from the return.
> This seems to shut up all compilers I've dealt with.
I believe we use this idiom elsewhere in the Python codebase. If it's
combined with a comment like /* avoid compile warning about unused
variable */ it's quite clear.
Jeremy
More information about the Python-Dev
mailing list