From dca51c7aefb925786cf89c2471f20a388d5e1815 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 18 May 2022 11:47:44 -0600 Subject: [PATCH] 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. --- numpy/core/feature_detection_locale.h | 1 + 1 file changed, 1 insertion(+) diff --git a/numpy/core/feature_detection_locale.h b/numpy/core/feature_detection_locale.h index 0af1d6e7e640..59e78936d8d8 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);