From: Martin Ling Date: Tue, 20 Oct 2015 19:38:37 +0000 (+0100) Subject: python: Prevent warning about deprecated NumPy API. X-Git-Tag: libsigrok-0.4.0~212 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e66728886ff684e286a2544986116251e4c5531e;p=libsigrok.git python: Prevent warning about deprecated NumPy API. Without this we get: /usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] As far as I'm aware we're not using any deprecated NumPy C API features. This fixes part of bug #417. --- diff --git a/bindings/python/sigrok/core/classes.i b/bindings/python/sigrok/core/classes.i index 347a7e22..49cfba98 100644 --- a/bindings/python/sigrok/core/classes.i +++ b/bindings/python/sigrok/core/classes.i @@ -47,6 +47,7 @@ which provides access to the error code and description." %{ #include #include +#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include PyObject *PyGObject_lib;