Skip to content

Commit

Permalink
Workaround icpc warnings for missing return types
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Ellingwood <[email protected]>
  • Loading branch information
masterleinad and ndellingwood committed Jun 19, 2024
1 parent 6f20467 commit 4a5a5ae
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions 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 4a5a5ae

Please sign in to comment.