mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
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
This commit is contained in:
parent
2a16eea71f
commit
55aabee075
2 changed files with 3 additions and 1 deletions
|
|
@ -781,8 +781,9 @@ def has_function(self, funcname, includes=None, include_dirs=None,
|
||||||
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:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Fix C compiler warning caused by distutils.ccompiler.CCompiler.has_function.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue