-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress warning 940 for unreachable code in variant
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -617,6 +617,7 @@ struct __variant | |
_CUDA_VSTD::forward<_Vs>(__vs)...); | ||
} | ||
|
||
_CCCL_NV_DIAG_SUPPRESS(940) // Suppress no return at end of function | ||
// This overload is needed to tell the compiler that the recursion is indeed limited | ||
template <class _Visitor, class... _Vs, size_t... _ProcessedIndices, size_t... _UnprocessedIndices> | ||
inline _LIBCUDACXX_HIDDEN _LIBCUDACXX_INLINE_VISIBILITY static constexpr decltype(auto) __visit_impl( | ||
|
@@ -640,6 +641,7 @@ struct __variant | |
} | ||
_LIBCUDACXX_UNREACHABLE(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
miscco
Collaborator
|
||
} | ||
_CCCL_NV_DIAG_DEFAULT(940) // End suppression of no return at end of function | ||
|
||
template <class _Visitor, class... _Vs> | ||
inline _LIBCUDACXX_HIDDEN _LIBCUDACXX_INLINE_VISIBILITY static constexpr decltype(auto) | ||
|
But it is right there 😿