From 93d5c35feaae8f2fe8e0361ffc19e31d463ca099 Mon Sep 17 00:00:00 2001 From: Fredrik Svedberg Date: Tue, 11 May 2021 13:51:47 +0200 Subject: Fix mlw_module Fixedx size calculation in mlw_reorder_encode. Fixed build warnings. Signed-off-by: Fredrik Svedberg Change-Id: Iac9408b9972a29b5a3403ba11f80dc4eaaa35453 --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index d2137437..6900a67d 100644 --- a/setup.py +++ b/setup.py @@ -44,6 +44,7 @@ mlw_module = Extension( "ethosu.mlw_codec", ["ethosu/mlw_codec/mlw_encode.c", "ethosu/mlw_codec/mlw_decode.c", "ethosu/mlw_codec/mlw_codecmodule.c"], include_dirs=[np.get_include()], + define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_9_API_VERSION")], ) setup( -- cgit v1.2.1