Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6eba6c0

Browse files
committed
Suppress -Wunused-function about _import_array when compiling tkagg.cpp.
Perhttps://numpy.org/doc/1.17/reference/c-api.array.html#c.NO_IMPORT_ARRAYOther extension modules in Matplotlib already use the same mechanism.
1 parentc1e0211 commit6eba6c0

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
#definedlsym 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+
#defineNO_IMPORT_ARRAY
3639
#endif
3740

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp