diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-05-30 07:49:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 07:49:18 -0600 |
commit | ce6c68aebab74ce82ef83e1c6983faffe462066d (patch) | |
tree | f68199ad192ac716fe47d82b60fe5532c0d91528 | |
parent | a906c1fa8cb68e937c87bfe63df07073e983338b (diff) | |
parent | 7d708209d035247cd80de8153605c317798759db (diff) | |
download | numpy-ce6c68aebab74ce82ef83e1c6983faffe462066d.tar.gz |
Merge pull request #16442 from Qiyu8/deprecated-warn
ENH: Fix deprecated warn for Intel/Apple/Clang Compiler
-rw-r--r-- | numpy/core/include/numpy/npy_1_7_deprecated_api.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/include/numpy/npy_1_7_deprecated_api.h b/numpy/core/include/numpy/npy_1_7_deprecated_api.h index 440458010..a4f90e019 100644 --- a/numpy/core/include/numpy/npy_1_7_deprecated_api.h +++ b/numpy/core/include/numpy/npy_1_7_deprecated_api.h @@ -13,11 +13,10 @@ #define _WARN___LOC__ __FILE__ "(" _WARN___STR1__(__LINE__) ") : Warning Msg: " #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \ "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION") -#elif defined(__GNUC__) +#else #warning "Using deprecated NumPy API, disable it with " \ "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" #endif -/* TODO: How to do this warning message for other compilers? */ #endif /* |