Skip to content

Commit da1bf68

Browse files
Fixed compiler warning
1 parent 72ebdac commit da1bf68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpctl/tensor/libtensor/include/utils/type_dispatch.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ struct usm_ndarray_types
245245
else {
246246
throw_unrecognized_typenum_error(typenum);
247247
}
248+
// return code signalling error, should never be reached
249+
assert(false);
250+
return -1;
248251
}
249252

250253
private:

0 commit comments

Comments
 (0)