From dc17f218c0f3165931d667594662acebb05fefce Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Fri, 9 Oct 2015 21:51:55 +0200 Subject: MAINT: remove Wreturn-type warnings from config checks closes gh-6427 --- numpy/distutils/command/autodist.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/distutils/command/autodist.py') diff --git a/numpy/distutils/command/autodist.py b/numpy/distutils/command/autodist.py index af53c5104..d5e78963c 100644 --- a/numpy/distutils/command/autodist.py +++ b/numpy/distutils/command/autodist.py @@ -55,6 +55,7 @@ main() #if (! defined __GNUC__) || (__GNUC__ < 4) #error gcc >= 4 required #endif + return 0; } """ return cmd.try_compile(body, None, None) @@ -72,6 +73,7 @@ int %s %s(void*); int main() { + return 0; } """ % (attribute, name) return cmd.try_compile(body, None, None) != 0 -- cgit v1.2.1