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

Skip to content

Commit a022490

Browse files
authored
Merge pull request #19094 from anntzer/nia
Suppress -Wunused-function about _import_array when compiling tkagg.cpp.
2 parents 9fc31f6 + 6eba6c0 commit a022490

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_tkagg.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
#define dlsym GetProcAddress
3434
#else
3535
#include <dlfcn.h>
36+
// Suppress -Wunused-function on POSIX, but not on Windows where that would
37+
// lead to PY_ARRAY_UNIQUE_SYMBOL being an unresolved external.
38+
#define NO_IMPORT_ARRAY
3639
#endif
3740

3841
// Include our own excerpts from the Tcl / Tk headers

0 commit comments

Comments
 (0)