Skip to content

Commit b32f5c7

Browse files
committed
Fix warning about unused argument on some compilers
1 parent 456e6eb commit b32f5c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/ein_reduce.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ TEST(ein_reduce_dot_offset) {
145145
constexpr int sgn(index_t i) { return i == 0 ? 0 : (i < 0 ? -1 : 1); }
146146

147147
// Defines the arbitrary rank Levi-Civita tensor as a constexpr function.
148-
constexpr int epsilon() { return 1.0f; }
148+
constexpr int epsilon() { return 1; }
149+
constexpr int epsilon(index_t i0) { return 1; }
149150
template <class... Ts>
150151
constexpr int epsilon(index_t i0, Ts... is) {
151152
return internal::product(sgn(is - i0)...) * epsilon(is...);

0 commit comments

Comments
 (0)