Skip to content

Commit

Permalink
#3031 no need to silence deprecation warnings any more
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 31, 2021
1 parent 63710da commit b8d5a00
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions setup.py
Expand Up @@ -719,10 +719,6 @@ def add_tokens(s, extra="extra_link_args", extra_map={"-W" : "extra_compile_args
eifd = []
for eif in eifd:
add_to_keywords(kw, 'extra_compile_args', eif)
if sys.version_info>=(3,7):
#we'll switch to the "new" buffer interface eventually
#until then, silence those deprecation warnings:
add_to_keywords(kw, 'extra_compile_args', "-Wno-error=deprecated-declarations")
if PIC_ENABLED:
add_to_keywords(kw, 'extra_compile_args', "-fPIC")
if debug_ENABLED:
Expand Down Expand Up @@ -2296,8 +2292,6 @@ def get_nvcc_version(command):
avcodec2_pkgconfig = pkgconfig("libavcodec", "libavutil", "libavformat")
if get_gcc_version()>=[9, 0]:
add_to_keywords(avcodec2_pkgconfig, 'extra_compile_args', "-Wno-error=attributes")
#workaround for ffmpeg 4.4:
add_to_keywords(avcodec2_pkgconfig, 'extra_compile_args', "-Wno-error=deprecated-declarations")
cython_add(Extension("xpra.codecs.dec_avcodec2.decoder",
["xpra/codecs/dec_avcodec2/decoder.pyx", "xpra/codecs/dec_avcodec2/register_compat.c"],
**avcodec2_pkgconfig))
Expand Down Expand Up @@ -2342,7 +2336,6 @@ def get_nvcc_version(command):
ffmpeg_pkgconfig = pkgconfig("libavcodec", "libavformat", "libavutil")
if get_gcc_version()>=[9, 0]:
add_to_keywords(ffmpeg_pkgconfig, 'extra_compile_args', "-Wno-error=attributes")
add_to_keywords(ffmpeg_pkgconfig, 'extra_compile_args', "-Wno-error=deprecated-declarations")
cython_add(Extension("xpra.codecs.enc_ffmpeg.encoder",
["xpra/codecs/enc_ffmpeg/encoder.pyx"],
**ffmpeg_pkgconfig))
Expand Down

0 comments on commit b8d5a00

Please sign in to comment.