"-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" #50005
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee = 'https://github.com/tarekziade' closed_at = <Date 2018-06-06.05:26:45.429> created_at = <Date 2009-04-14.17:22:50.629> labels = ['library'] title = '"-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"' updated_at = <Date 2018-06-07.10:13:19.160> user = 'https://bugs.python.org/zooko'
activity = <Date 2018-06-07.10:13:19.160> actor = 'jdemeyer' assignee = 'tarek' closed = True closed_date = <Date 2018-06-06.05:26:45.429> closer = 'methane' components = ['Distutils'] creation = <Date 2009-04-14.17:22:50.629> creator = 'zooko' dependencies =  files = ['44464'] hgrepos =  issue_num = 5755 keywords = ['patch'] message_count = 16.0 messages = ['85972', '87130', '116598', '135128', '316519', '316626', '316733', '318644', '318645', '318647', '318648', '318650', '318651', '318737', '318792', '318800'] nosy_count = 10.0 nosy_names = ['zooko', 'tarek', 'methane', 'Jason.Grout', 'GooseYArd', 'vokoda', 'serhiy.storchaka', 'jdemeyer', 'eitan.adler', 'miss-islington'] pr_nums = ['6791', '7395', '7422', '7438', '7476'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue5755' versions = 
The text was updated successfully, but these errors were encountered:
A user of the Tahoe-LAFS project submitted a bug report to us, saying:
A little googling shows that this gets reported frequently to other
Those other projects seem to think that this is distutils's problem, but
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.
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.