This is an archive of the discontinued Mercurial Phabricator instance.

setup: relax -Werror for declaration-after-statement on Python 3.9
ClosedPublic

Authored by durin42 on Mar 25 2020, 12:12 PM.

Details

Summary

It turns out Python 3.9 introduces such declarations in the headers, eg

cpython/abstract.h:189:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]

so we have to be more relaxed when compiling for 3.9.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage