[New-bugs-announce] [issue18211] -Werror=statement-after-declaration problem
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.
components: Build, Distutils
nosy: benjamin.peterson, eric.araujo, ronaldoussoren, tarek
stage: needs patch
title: -Werror=statement-after-declaration problem
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce