[New-bugs-announce] [issue18211] -Werror=statement-after-declaration problem

Ronald Oussoren report at bugs.python.org
Fri Jun 14 13:50:35 CEST 2013

New submission from Ronald Oussoren:

Changeset a3559c8c614b added -Werror=statement-after-declaration to the CFLAGS for compiler that support it. 

This new flags is fine for CPython itself (which is explicitly writting in C89 style to support older compilers and Microsoft Visual Studio), but the new flags also gets used when building 3th-party extensions using distutils and might cause problems there when that code uses C99.

I don't have a good solution for this yet, the flag is useful to have when building CPython to avoid regressions in C89 support but shouldn't be used when building 3th-party extensions.

assignee: eric.araujo
components: Build, Distutils
messages: 191119
nosy: benjamin.peterson, eric.araujo, ronaldoussoren, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: -Werror=statement-after-declaration problem
type: behavior
versions: Python 3.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list