[Python-checkins] bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)
Victor Stinner
webhook-mailer at python.org
Thu Oct 3 18:43:15 EDT 2019
https://github.com/python/cpython/commit/c515b573af1189fc46ddcd3323c53ed073b84848
commit: c515b573af1189fc46ddcd3323c53ed073b84848
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2019-10-04T00:43:10+02:00
summary:
bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid
a warning on typedef re-definition.
files:
M Include/internal/pycore_initconfig.h
diff --git a/Include/internal/pycore_initconfig.h b/Include/internal/pycore_initconfig.h
index 4a1a111af6834..8c6706c95cbd1 100644
--- a/Include/internal/pycore_initconfig.h
+++ b/Include/internal/pycore_initconfig.h
@@ -9,7 +9,7 @@ extern "C" {
#endif
/* Forward declaration */
-typedef struct pyruntimestate _PyRuntimeState;
+struct pyruntimestate;
/* --- PyStatus ----------------------------------------------- */
@@ -151,7 +151,7 @@ extern PyStatus _PyConfig_Copy(
const PyConfig *config2);
extern PyStatus _PyConfig_InitPathConfig(PyConfig *config);
extern void _PyConfig_Write(const PyConfig *config,
- _PyRuntimeState *runtime);
+ struct pyruntimestate *runtime);
extern PyStatus _PyConfig_SetPyArgv(
PyConfig *config,
const _PyArgv *args);
More information about the Python-checkins
mailing list