summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-05-30 07:49:18 -0600
committerGitHub <noreply@github.com>2020-05-30 07:49:18 -0600
commitce6c68aebab74ce82ef83e1c6983faffe462066d (patch)
treef68199ad192ac716fe47d82b60fe5532c0d91528
parenta906c1fa8cb68e937c87bfe63df07073e983338b (diff)
parent7d708209d035247cd80de8153605c317798759db (diff)
downloadnumpy-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.h3
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
/*