[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

Eitan Adler report at bugs.python.org
Tue May 15 17:37:15 EDT 2018


Eitan Adler <lists at eitanadler.com> added the comment:

copying and adapting my comments on the PR:

Strict Prototypes is correct and helpful for C. That said, the way it is currently implemented, by checking for the compiler in CC is sub-optimal at best.
CC ought to always be a C compiler, and never a C++ compiler.
It also seems questionable that distutils is using the python cflags rather than a dedicated set.

The best fix is a separate and specific list of flags for distutils rather than modifying the set of flags used to build python. That said, the current implementing of flags for python isn't great, so lets remove it as a short term fix.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue5755>
_______________________________________


More information about the Python-bugs-list mailing list