Inline: -Wno-unused is a GCC flag, some but not all compilers out there support it
authorLisandro Dalcin <dalcinl@gmail.com>
Mon, 7 Feb 2011 19:27:51 +0000 (16:27 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Mon, 7 Feb 2011 19:27:51 +0000 (16:27 -0300)
Cython/Build/Inline.py

index 2c6db326ba82f163e298d85f852b0b0f36810787..00f9febc1be401c854849731c747e1e69cc7b32b 100644 (file)
@@ -151,7 +151,7 @@ def cython_inline(code,
                 if m.groups()[0] == 'numpy':
                     import numpy
                     c_include_dirs.append(numpy.get_include())
-                    cflags.append('-Wno-unused')
+                    cflags.append('-Wno-unused')
         module_body, func_body = extract_func_code(code)
         params = ', '.join(['%s %s' % a for a in arg_sigs])
         module_code = """