diff options
author | Sayed Adel <seiko@imavr.com> | 2020-12-25 00:46:55 +0000 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2020-12-26 16:32:08 +0000 |
commit | 968288aa5d6db1ee972c4ba5869415ea47b4c27f (patch) | |
tree | 23acaf0040c4aedcfe828f51e15ec4937ff8e8bc | |
parent | b16288698742e7593db61cf9a618e2d03de6b36e (diff) | |
download | numpy-968288aa5d6db1ee972c4ba5869415ea47b4c27f.tar.gz |
MAINT: Suppress maybe-uninitialized warning in gcc on VSX
-rw-r--r-- | numpy/core/src/common/simd/vsx/vsx.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/core/src/common/simd/vsx/vsx.h b/numpy/core/src/common/simd/vsx/vsx.h index 769f5a08f..66b76208f 100644 --- a/numpy/core/src/common/simd/vsx/vsx.h +++ b/numpy/core/src/common/simd/vsx/vsx.h @@ -2,6 +2,16 @@ #error "Not a standalone header" #endif +#if defined(__GNUC__) && __GNUC__ <= 7 + /** + * GCC <= 7 produces ambiguous warning caused by -Werror=maybe-uninitialized, + * when certain intrinsics involved. `vec_ld` is one of them but it seemed to work fine, + * and suppressing the warning wouldn't affect its functionality. + */ + #pragma GCC diagnostic ignored "-Wuninitialized" + #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + #define NPY_SIMD 128 #define NPY_SIMD_WIDTH 16 #define NPY_SIMD_F64 1 |