Skip to content

Commit adb0ff3

Browse files
authored
Ignore incorrect gcc warning in einsum (#853)
1 parent c6a46b8 commit adb0ff3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/matx/transforms/einsum.h

+2
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ class matxEinsumHandle_t {
327327
((params.nmodes_[i++] = tensors.Rank()), ...);
328328

329329
i = 0;
330+
MATX_IGNORE_WARNING_PUSH_GCC("-Wunused-value")
330331
MATX_ASSERT_STR(((tokens[i++].length() == static_cast<size_t>(tensors.Rank())), ...), matxInvalidDim,
331332
"Tensor rank must match number of einsum subscripts");
333+
MATX_IGNORE_WARNING_POP_GCC
332334

333335
auto set_sizes = [](auto &t, std::vector<int64_t> &sizes) {
334336
for (int32_t s = 0; s < t.Rank(); s++) {

0 commit comments

Comments
 (0)