You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I've started noticing new issues while compiling CPython on my mac.
Something like:
Python/ceval_gil.c:470:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long _PyEval_GetSwitchInterval()
^
void
1 warning generated.
Recently, I've started noticing new issues while compiling CPython on my mac.
Something like:
Details aboit
-Wstrict-prototypes
: https://www.cism.ucl.ac.be/Services/Formations/ICS/ics_2013.0.028/composer_xe_2013/Documentation/en_US/compiler_c/main_cls/GUID-22FD192C-4C9D-4C16-B3DE-C3629D2EE483.htmSeems like
clang
now requires(void)
for functions without arguments.Other developers have also seen these. I have a PR with the fix ready.
To find functions without arguments I've used this regex:
\(\)\n+\{
It showed:
Linked PRs
-Wstrict-prototypes
warnings by using(void)
for functions with no args #103168The text was updated successfully, but these errors were encountered: