Commit 0229b56d authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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 55aabee0)
Co-authored-by: default avatarAnonymous Maarten <madebr@users.noreply.github.com>
parent c3642219
...@@ -748,8 +748,9 @@ class CCompiler: ...@@ -748,8 +748,9 @@ class CCompiler:
for incl in includes: for incl in includes:
f.write("""#include "%s"\n""" % incl) f.write("""#include "%s"\n""" % incl)
f.write("""\ f.write("""\
main (int argc, char **argv) { int main (int argc, char **argv) {
%s(); %s();
return 0;
} }
""" % funcname) """ % funcname)
finally: finally:
......
Fix C compiler warning caused by distutils.ccompiler.CCompiler.has_function.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment