This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maarten
Recipients dstufft, eric.araujo, maarten
Date 2019-08-27.20:47:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566938834.78.0.244631078662.issue37965@roundup.psfhosted.org>
In-reply-to
Content
When using the `has_function` method of a CCompiler object,
the compiler will emit a warning because the main function has no return type specified.

https://github.com/python/cpython/blob/8c9e9b0cd5b24dfbf1424d1f253d02de80e8f5ef/Lib/distutils/ccompiler.py#L784-L786

This warning is emitted:
/tmp/clockq2_azlzj.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | main (int argc, char **argv) {
      | ^~~~

This happens under Linux, gcc 9
History
Date User Action Args
2019-08-27 20:47:14maartensetrecipients: + maarten, eric.araujo, dstufft
2019-08-27 20:47:14maartensetmessageid: <1566938834.78.0.244631078662.issue37965@roundup.psfhosted.org>
2019-08-27 20:47:14maartenlinkissue37965 messages
2019-08-27 20:47:14maartencreate