I am converting a Cython memoryview to a numpy array (to be able to use it in pure Python code):
from libc.stdlib cimport realloc cimport numpy as np DTYPE
Assuming one wishes to hide the deprecation warning, the following compiler flag can be implemented with clang: extra_compile_args=['-Wno-#warnings'].
extra_compile_args=['-Wno-#warnings']
For gcc, extra_compile_args=['-Wno-cpp'] achieves the same.
extra_compile_args=['-Wno-cpp']
Of course this also hides other preprocessor directive warnings.