From f0d3e47a56c0ab4f132f4e50a7f39895f1fd22e3 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 27 Aug 2019 22:40:14 +0200 Subject: [PATCH] Fix compiler warning of distutils CCompiler.test_function --- Lib/distutils/ccompiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 1a411ed1..4cfc6c70 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: -- 2.21.0