Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ad6a3d

Browse files
committed
Only make the unguarded API warning an error
We have other deprecated constants that flags warnings in CI. Unfortunately, the deprecations occur in the same version when the new names are introduced, and we can't rely on those being available yet.
1 parent ff368f9 commit 8ad6a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def get_extensions(self):
657657
'src/_macosx.m'
658658
]
659659
ext = Extension('matplotlib.backends._macosx', sources)
660-
ext.extra_compile_args.extend(['-Wunguarded-availability', '-Werror'])
660+
ext.extra_compile_args.extend(['-Werror=unguarded-availability'])
661661
ext.extra_link_args.extend(['-framework', 'Cocoa'])
662662
if platform.python_implementation().lower() == 'pypy':
663663
ext.extra_compile_args.append('-DPYPY=1')

0 commit comments

Comments
 (0)