8000 MAINT: default to C11 rather than C99, fix most build warnings with Clang 14 by rgommers · Pull Request #25072 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: default to C11 rather than C99, fix most build warnings with Clang 14 #25072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 13, 2023
Prev Previous commit
Next Next commit
MAINT: fix unused function warning in multiarray/item_selection.c
The warning was:
```
[2/3] Compiling C object numpy/_core/_multiarray_umath.cpython-39-darwin.so.p/src_multiarray_item_selection.c.o
../numpy/_core/src/multiarray/item_selection.c:2371:1: warning: unused function 'count_nonzero_bytes_384' [-Wunused-function]
count_nonzero_bytes_384(const npy_uint64 * w)
```
  • Loading branch information
rgommers committed Dec 13, 2023
commit ceccff0dd51e37d775cc6da06e164cda44036ea4
2 changes: 2 additions & 0 deletions numpy/_core/src/multiarray/item_selection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,7 @@ PyArray_Compress(PyArrayObject *self, PyObject *condition, int axis,
* even though it uses 64 bit types its faster than the bytewise sum on 32 bit
* but a 32 bit type version would make it even faster on these platforms
*/
#if !NPY_SIMD
static inline npy_intp
count_nonzero_bytes_384(const npy_uint64 * w)
{
Expand Down Expand Up @@ -2407,6 +2408,7 @@ count_nonzero_bytes_384(const npy_uint64 * w)

return r;
}
#endif

#if NPY_SIMD
/* Count the zero bytes between `*d` and `end`, updating `*d` to point to where to keep counting from. */
Expand Down
0