summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAnonymous Maarten <madebr@users.noreply.github.com>2019-08-28 17:11:03 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-28 17:11:03 (GMT)
commit55aabee07501e1468082b3237620e4ecd75c5da6 (patch)
treef119681dde409f3f4eef2188b6e6fc67840ad8f4 /Lib/distutils
parent2a16eea71f56c2d8f38c295c8ce71a9a9a140aff (diff)
downloadcpython-55aabee07501e1468082b3237620e4ecd75c5da6.zip
cpython-55aabee07501e1468082b3237620e4ecd75c5da6.tar.gz
cpython-55aabee07501e1468082b3237620e4ecd75c5da6.tar.bz2
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
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/ccompiler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 1a411ed..4cfc6c7 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -781,8 +781,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: