Enable -Wdeprecated-copy-with-user-provided-copy (#1643)

[ROCm/rccl commit: 4486d091b8]
This commit is contained in:
Richard Barnes
2025-06-13 08:23:31 -07:00
committed by GitHub
parent 7f7f1cede3
commit 2c0cc20a76
3 changed files with 14 additions and 5 deletions
+5 -1
View File
@@ -125,7 +125,11 @@ union alignas(16) BytePack<16> {
uint64_t u64[2];
ulong2 ul2, native;
#if !defined(USE_INDIRECT_FUNCTION_CALL) || defined(__gfx942__) || defined(__gfx950__)
inline __device__ BytePack<16>& operator=(BytePack<16> other) {
inline __device__ BytePack<16>() = default;
inline __device__ BytePack<16>(const BytePack<16>& other) {
*this = other;
}
inline __device__ BytePack<16>& operator=(const BytePack<16>& other) {
u64[0] = other.u64[0];
u64[1] = other.u64[1];
return *this;