Skip to content

Commit

Permalink
Update setup.py to ignore -Wunused-variable errors when building …
Browse files Browse the repository at this point in the history
…Cython code
  • Loading branch information
althonos committed Aug 2, 2023
1 parent e3f7195 commit 0e954c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def build_extension(self, ext):
ext.define_macros.append(("CYTHON_TRACE_NOGIL", 1))
else:
ext.define_macros.append(("CYTHON_WITHOUT_ASSERTIONS", 1))
if self.compiler.compiler_type in {"unix", "cygwin", "mingw32"}:
ext.extra_compile_args.append("-Wno-unused-variable")

# remove universal binary CFLAGS from the compiler if any
if platform.system() == "Darwin":
Expand Down

0 comments on commit 0e954c1

Please sign in to comment.