Page MenuHomePhabricator

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

Authored by durin42 on Wed, Mar 25, 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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.