Skip to content

Commit e3efede

Browse files
authored
Avoid "most vexing parse" warning in certain versions of NVCC (#162)
1 parent 44c8e14 commit e3efede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,8 @@ static inline int Py_fclose(FILE *file)
19921992

19931993

19941994
#if 0x03080000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
1995+
PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
1996+
19951997
static inline PyObject*
19961998
PyConfig_Get(const char *name)
19971999
{
@@ -2127,8 +2129,6 @@ PyConfig_Get(const char *name)
21272129
return Py_NewRef(value);
21282130
}
21292131

2130-
PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
2131-
21322132
const PyConfig *config = _Py_GetConfig();
21332133
void *member = (char *)config + spec->offset;
21342134
switch (spec->type) {

0 commit comments

Comments
 (0)