Skip to content

[3.10] GH-102711: Fix warnings found by clang (GH-102712) - #103076

Merged
ambv merged 1 commit into
python:3.10from
miss-islington:backport-7703def-3.10
Mar 28, 2023
Merged

[3.10] GH-102711: Fix warnings found by clang (GH-102712)#103076
ambv merged 1 commit into
python:3.10from
miss-islington:backport-7703def-3.10

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

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.

(cherry picked from commit 7703def)

Co-authored-by: Chenxi Mao chenxi.mao@suse.com
Signed-off-by: Chenxi Mao chenxi.mao@suse.com

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.
(cherry picked from commit 7703def)
Co-authored-by: Chenxi Mao <chenxi.mao@suse.com>
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@ambv@bedevere-bot