From: Victor Stinner Date: Thu, 3 Oct 2019 22:43:10 +0000 (+0200) Subject: bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c515b573af1189fc46ddcd3323c53ed073b84848;p=python bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570) Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition. --- diff --git a/Include/internal/pycore_initconfig.h b/Include/internal/pycore_initconfig.h index 4a1a111af6..8c6706c95c 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);