[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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant