Skip to content

Commit f3ac27c

Browse files
committed
Suppress -Wunused-function about _import_array when compiling tkagg.cpp.
Per https://numpy.org/doc/1.17/reference/c-api.array.html#c.NO_IMPORT_ARRAY Other extension modules in Matplotlib already use the same mechanism.
1 parent c1e0211 commit f3ac27c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/_tkagg.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#include <dlfcn.h>
3636
#endif
3737

38+
#define NO_IMPORT_ARRAY
39+
3840
// Include our own excerpts from the Tcl / Tk headers
3941
#include "_tkmini.h"
4042
#include "py_converters.h"

0 commit comments

Comments
 (0)