Skip to content

Commit

Permalink
MAINT: Fix some noisy clang suggestions.
Browse files Browse the repository at this point in the history
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>,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~
                                  {                       }
```
  • Loading branch information
charris committed Jan 10, 2023
1 parent 2372807 commit 8beea02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/core/src/npysort/selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8beea02

Please sign in to comment.