Message 350645 - Python tracker

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.

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