Skip to content

Commit

Permalink
[PATCH] Workaround icpc warnings for missing return types
Browse files Browse the repository at this point in the history
Patch peeled from kokkos/mdspan#349

Co-authored-by: Daniel Arndt <[email protected]>
  • Loading branch information
ndellingwood and masterleinad committed Jun 20, 2024
1 parent 87eb97f commit 50b7da1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tpls/mdspan/include/experimental/__p2642_bits/layout_padded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ MDSPAN_INLINE_FUNCTION constexpr size_t get_actual_static_padding_value() {
} else {
return dynamic_extent;
}
// Missing return statement warning from NVCC
#ifdef __NVCC__
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
return 0;
#endif
}
Expand Down Expand Up @@ -105,9 +105,9 @@ struct padded_extent {
} else {
return init_padding(exts, padding_value);
}
// Missing return statement warning from NVCC
#ifdef __NVCC__
return {};
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
return {};
#endif
}

Expand All @@ -120,9 +120,9 @@ struct padded_extent {
} else {
return {};
}
// Missing return statement warning from NVCC
#ifdef __NVCC__
return {};
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
return {};
#endif
}

Expand All @@ -135,9 +135,9 @@ struct padded_extent {
} else {
return {};
}
// Missing return statement warning from NVCC
#ifdef __NVCC__
return {};
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
return {};
#endif
}
};
Expand Down

0 comments on commit 50b7da1

Please sign in to comment.