diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2022-05-18 11:47:44 -0600 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2022-05-18 12:24:41 -0600 |
| commit | 2985b57bec2f4e61eec7e41c8be9ba61bd6736ef (patch) | |
| tree | bdd88b02770451a429c8ba9debd6f08c12e57e8e /numpy | |
| parent | 59aad3cf436691d447e43038e3402500f13cd817 (diff) | |
| download | numpy-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.h | 1 |
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); |
