Skip to content

Commit

Permalink
disable empty return for _NVCOMPILER
Browse files Browse the repository at this point in the history
  • Loading branch information
tcclevenger committed Aug 29, 2024
1 parent 98a12b0 commit 23ecff3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/experimental/__p2642_bits/layout_padded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ MDSPAN_INLINE_FUNCTION constexpr size_t get_actual_static_padding_value() {
return dynamic_extent;
}
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
#if (defined(__NVCC__) || defined(__INTEL_COMPILER)) && !defined(__NVCOMPILER)
return 0;
#endif
}
Expand Down Expand Up @@ -106,7 +106,7 @@ struct padded_extent {
return init_padding(exts, padding_value);
}
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
#if (defined(__NVCC__) || defined(__INTEL_COMPILER)) && !defined(__NVCOMPILER)
return {};
#endif
}
Expand All @@ -121,7 +121,7 @@ struct padded_extent {
return {};
}
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
#if (defined(__NVCC__) || defined(__INTEL_COMPILER)) && !defined(__NVCOMPILER)
return {};
#endif
}
Expand All @@ -136,7 +136,7 @@ struct padded_extent {
return {};
}
// Missing return statement warning from NVCC and ICC
#if defined(__NVCC__) || defined(__INTEL_COMPILER)
#if (defined(__NVCC__) || defined(__INTEL_COMPILER)) && !defined(__NVCOMPILER)
return {};
#endif
}
Expand Down

0 comments on commit 23ecff3

Please sign in to comment.