diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-06-13 02:16:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-13 02:16:41 +0200 |
| commit | 37d66d7d4bc7dbac9809d69966a774ebb32563be (patch) | |
| tree | 510316d9aafcba8dc519e9df877c3f20c7f005f9 /Modules/main.c | |
| parent | 2c9b498759f4fc74da82a0a96d059d666fa73f16 (diff) | |
| download | cpython-git-37d66d7d4bc7dbac9809d69966a774ebb32563be.tar.gz | |
bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018)
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags
variables, rather than initializing cf_flags and cf_feature_version
explicitly in each variable.
Diffstat (limited to 'Modules/main.c')
| -rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 6b9406f786..853afedd7b 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -524,7 +524,7 @@ pymain_run_python(int *exitcode) } } - PyCompilerFlags cf = {.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION}; + PyCompilerFlags cf = _PyCompilerFlags_INIT; pymain_header(config); pymain_import_readline(config); |
