Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3efede

Browse files
authored
Avoid "most vexing parse" warning in certain versions of NVCC (#162)
1 parent44c8e14 commite3efede

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
staticinline PyObject*
19961998
PyConfig_Get(constchar *name)
19971999
{
@@ -2127,8 +2129,6 @@ PyConfig_Get(const char *name)
21272129
returnPy_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)

[8]ページ先頭

©2009-2025 Movatter.jp