Skip to content

Commit

Permalink
#333: warnings: more warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Apr 9, 2024
1 parent 7a2b431 commit 6cdfc42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/checkpoint/container/view_traverse_ndim.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ struct TraverseRecurImplBase {
template <typename U = ViewT>
static CountType applyImpl(
ViewT const& view, unsigned nd, TupleT idx, Callable call,
ViewIsTuple<U>* x_ = nullptr
ViewIsTuple<U>* = nullptr
) {
auto const ex1 = std::get<0>(view).extent(nd-d);
auto const ex2 = std::get<1>(view).extent(nd-d);
Expand All @@ -149,7 +149,7 @@ struct TraverseRecurImplBase {
template <typename U = ViewT>
static CountType applyImpl(
ViewT const& view, unsigned nd, TupleT idx, Callable call,
ViewNotTuple<U>* x_ = nullptr
ViewNotTuple<U>* = nullptr
) {
CountType neq = 0;
for (SizeType i = 0; i < view.extent(nd-d); i++) {
Expand Down Expand Up @@ -204,7 +204,7 @@ struct TraverseRecurImpl {
// Unwind the inner tuple for operator()(...)
template <typename ViewU, std::size_t... I>
static GetBaseType<ViewU>& expandTupleToOp(
ViewU const& view, TupleT tup, std::index_sequence<I...> idx
ViewU const& view, TupleT tup, std::index_sequence<I...>
) {
return view.operator()(std::get<I>(tup)...);
}
Expand Down
2 changes: 1 addition & 1 deletion src/checkpoint/dispatch/reconstructor.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct Reconstructor {

// Fail, no valid option to constructing T
template <typename U = T>
static T* constructDefault(void* buf, isNotDefaultConsType<U>* = nullptr) {
static T* constructDefault(void*, isNotDefaultConsType<U>* = nullptr) {
static_assert(
SerializableTraits<U, void>::is_tagged_constructible or
SerializableTraits<U, void>::is_reconstructible or
Expand Down

0 comments on commit 6cdfc42

Please sign in to comment.