closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15560)

https://bugs.python.org/issue37965

https://bugs.python.org/issue37965

Automerge-Triggered-By: @benjaminp
(cherry picked from commit 55aabee075)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2019-08-28 10:36:18 -07:00 committed by GitHub
parent c364221909
commit 0229b56d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -748,8 +748,9 @@ class CCompiler:
for incl in includes:
f.write("""#include "%s"\n""" % incl)
f.write("""\
main (int argc, char **argv) {
int main (int argc, char **argv) {
%s();
return 0;
}
""" % funcname)
finally:

View File

@ -0,0 +1 @@
Fix C compiler warning caused by distutils.ccompiler.CCompiler.has_function.