Skip to content

Commit b625374

Browse files
committed
Fix compilation on clang
1 parent 0eb3fd0 commit b625374

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/c-api/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ return ``-1`` on error:
216216
PyInitConfig_Free(config);
217217
return 0;
218218
219-
error:
220219
// Display the error message
221220
const char *err_msg;
221+
error:
222222
(void)PyInitConfig_GetError(config, &err_msg);
223223
printf("PYTHON INIT ERROR: %s\n", err_msg);
224224
PyInitConfig_Free(config);

Programs/_testembed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,8 +1850,8 @@ static int test_initconfig_api(void)
18501850
Py_Finalize();
18511851
return 0;
18521852

1853-
error:
18541853
const char *err_msg;
1854+
error:
18551855
(void)PyInitConfig_GetError(config, &err_msg);
18561856
printf("Python init failed: %s\n", err_msg);
18571857
exit(1);

0 commit comments

Comments
 (0)