summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2023-01-09 17:17:18 -0700
committerCharles Harris <charlesr.harris@gmail.com>2023-01-09 17:41:03 -0700
commit8beea02ec014613b87ab447e13dd242606429b22 (patch)
tree9a31c711a011314fcd85f874ecc129a4c98f442a
parent237280769b44d643705db9752891f08789b97ee6 (diff)
downloadnumpy-8beea02ec014613b87ab447e13dd242606429b22.tar.gz
MAINT: Fix some noisy clang suggestions.
The suggestions looks like: ``` numpy/core/src/npysort/selection.cpp:426:39: warning suggest braces around initialization of subobject [-Wmissing-braces] arg_map{Tags::type_value, &introselect_noarg<Tags>, ^~~~~~~~~~~~~~~~~~~~~~~~ { } ```
-rw-r--r--numpy/core/src/npysort/selection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/npysort/selection.cpp b/numpy/core/src/npysort/selection.cpp
index ebe188b71..450858df9 100644
--- a/numpy/core/src/npysort/selection.cpp
+++ b/numpy/core/src/npysort/selection.cpp
@@ -423,8 +423,8 @@ static constexpr std::array<arg_map, sizeof...(Tags)>
make_partition_map(npy::taglist<Tags...>)
{
return std::array<arg_map, sizeof...(Tags)>{
- arg_map{Tags::type_value, &introselect_noarg<Tags>,
- &introselect_arg<Tags>}...};
+ arg_map{Tags::type_value, {&introselect_noarg<Tags>},
+ {&introselect_arg<Tags>}}...};
}
struct partition_t {