Skip to content

Commit

Permalink
fix new warnings generated by latest Cython / gcc on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jun 20, 2022
1 parent d4d1f03 commit 4b93dd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,8 @@ def add_cython_ext(*_args, **_kwargs):
propsys_pkgconfig = pkgconfig()
if debug_ENABLED:
add_to_keywords(propsys_pkgconfig, 'extra_compile_args', "-DDEBUG")
if WIN32:
add_to_keywords(propsys_pkgconfig, 'extra_compile_args', "-Wno-error=address")
add_to_keywords(propsys_pkgconfig, 'extra_link_args', "-luuid", "-lshlwapi", "-lole32", "-static-libgcc")
add_cython_ext("xpra.platform.win32.propsys",
["xpra/platform/win32/propsys.pyx", "xpra/platform/win32/setappid.cpp"],
Expand Down Expand Up @@ -2037,6 +2039,7 @@ def add_cython_ext(*_args, **_kwargs):
nvfbc_pkgconfig = pkgconfig("nvfbc")
if WIN32:
add_to_keywords(nvfbc_pkgconfig, 'extra_compile_args', "-Wno-endif-labels")
add_to_keywords(nvfbc_pkgconfig, 'extra_compile_args', "-Wno-error=address")
platform = sys.platform.rstrip("0123456789")
add_cython_ext("xpra.codecs.nvfbc.fbc_capture_%s" % platform,
["xpra/codecs/nvfbc/fbc_capture_%s.pyx" % platform],
Expand Down Expand Up @@ -2316,6 +2319,8 @@ def nvcc_compile(cmd):
toggle_packages(csc_libyuv_ENABLED, "xpra.codecs.csc_libyuv")
if csc_libyuv_ENABLED:
libyuv_pkgconfig = pkgconfig("libyuv")
if WIN32:
add_to_keywords(libyuv_pkgconfig, 'extra_compile_args', "-Wno-error=address")
add_cython_ext("xpra.codecs.csc_libyuv.colorspace_converter",
["xpra/codecs/csc_libyuv/colorspace_converter.pyx"],
language="c++",
Expand Down

0 comments on commit 4b93dd9

Please sign in to comment.