diff --git a/Misc/NEWS.d/next/Build/2023-03-15-02-03-39.gh-issue-102711.zTkjts.rst b/Misc/NEWS.d/next/Build/2023-03-15-02-03-39.gh-issue-102711.zTkjts.rst new file mode 100644 index 00000000000000..51184396877721 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2023-03-15-02-03-39.gh-issue-102711.zTkjts.rst @@ -0,0 +1 @@ +Fix ``-Wstrict-prototypes`` compiler warnings. diff --git a/Parser/pegen.c b/Parser/pegen.c index 556e50a104a9c6..87b47bacec553f 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c @@ -262,7 +262,7 @@ _PyPegen_fill_token(Parser *p) static long memo_statistics[NSTATISTICS]; void -_PyPegen_clear_memo_statistics() +_PyPegen_clear_memo_statistics(void) { for (int i = 0; i < NSTATISTICS; i++) { memo_statistics[i] = 0; @@ -270,7 +270,7 @@ _PyPegen_clear_memo_statistics() } PyObject * -_PyPegen_get_memo_statistics() +_PyPegen_get_memo_statistics(void) { PyObject *ret = PyList_New(NSTATISTICS); if (ret == NULL) {