[New-bugs-announce] [issue12404] c99 code in mmapmodule

Akira Kitada report at bugs.python.org
Sat Jun 25 09:02:57 CEST 2011

New submission from Akira Kitada <akitada at gmail.com>:

Modules/mmapmodule.c contains code that makes it incompatible with C89 compiler.

People using recent gcc can check this by running following commands.
    $ ./configure CFLAGS='-Wdeclaration-after-statement' && make

Attached patch fixes the issue.
(verified on Linux 2.6.39-2-amd64 with gcc 4.6.1)

components: Build
files: c89compat_mmap.patch
keywords: patch
messages: 139020
nosy: akitada
priority: normal
severity: normal
status: open
title: c99 code in mmapmodule
type: compile error
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22453/c89compat_mmap.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list