]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-102711: Fix warnings found by clang (#102712)
authorChenxi Mao <chenxi.mao@suse.com>
Tue, 28 Mar 2023 08:52:22 +0000 (16:52 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 08:52:22 +0000 (10:52 +0200)
commit7703def37e4fa7d25c3d23756de8f527daa4e165
tree990863fcd463b4bf9e3809592db0f160c93ad174
parentf4ed2c6ae5915329e49b9f94033ef182400e29fa
GH-102711: Fix warnings found by clang (#102712)

There are some warnings if build python via clang:

Parser/pegen.c:812:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_clear_memo_statistics()
                              ^
                               void

Parser/pegen.c:820:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_get_memo_statistics()
                            ^
                             void

Fix it to make clang happy.

Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
Misc/NEWS.d/next/Build/2023-03-15-02-03-39.gh-issue-102711.zTkjts.rst [new file with mode: 0644]
Parser/pegen.c