Skip to content

Commit

Permalink
fix gcc werror
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahrri committed May 23, 2024
1 parent 13d1bd6 commit 3628ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nmtools/array/index/broadcast_to.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace nmtools::index::impl
>;

auto ret = result_t {};
auto dim = len(bshape);
[[maybe_unused]] auto dim = len(bshape);

if constexpr (meta::is_resizable_v<result_t>) {
ret.resize(dim);
Expand Down

0 comments on commit 3628ae3

Please sign in to comment.