Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround icpc warnings for missing return types #349

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading