[Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.218, 2.219 (original) (raw)
Jeremy Hylton jhylton at gmail.com
Tue Aug 3 14:51:36 CEST 2004
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.218, 2.219
- Next message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.218, 2.219
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.218, 2.219
- Next message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.218, 2.219
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]