summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-05-18 11:47:44 -0600
committerCharles Harris <charlesr.harris@gmail.com>2022-05-18 12:24:41 -0600
commit2985b57bec2f4e61eec7e41c8be9ba61bd6736ef (patch)
treebdd88b02770451a429c8ba9debd6f08c12e57e8e /numpy
parent59aad3cf436691d447e43038e3402500f13cd817 (diff)
downloadnumpy-2985b57bec2f4e61eec7e41c8be9ba61bd6736ef.tar.gz
BUG: Fix GCC error during build configuration
GCC 11 fails the configuration test for detecting `strtold_l` when the `-Wall` flag is present because `-Werror=nonnull` is activated. The fix is to add a pragma to `numpy/core/feature_detection_locale.h` to ignore that error. Closes #21529.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/feature_detection_locale.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/feature_detection_locale.h b/numpy/core/feature_detection_locale.h
index 0af1d6e7e..59e78936d 100644
--- a/numpy/core/feature_detection_locale.h
+++ b/numpy/core/feature_detection_locale.h
@@ -1 +1,2 @@
+#pragma GCC diagnostic ignored "-Wnonnull"
long double strtold_l(const char*, char**, locale_t);