You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
In file included from /thrust/cub/block/../iterator/cache_modified_input_iterator.cuh:42:
/thrust/cub/block/../iterator/../util_device.cuh:323:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (payload.error = std::forward<Invocable>(f)(payload.attribute))
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/thrust/cub/block/../iterator/../util_device.cuh:323:35: note: place parentheses around the assignment to silence this warning
if (payload.error = std::forward<Invocable>(f)(payload.attribute))
^
( )
/thrust/cub/block/../iterator/../util_device.cuh:323:35: note: use '==' to turn this assignment into an equality comparison
if (payload.error = std::forward<Invocable>(f)(payload.attribute))
^
==
Would it make sense to split this into two lines?
payload.error = std::forward<Invocable>(f)(payload.attribute);
if (payload.error)
The text was updated successfully, but these errors were encountered:
An assignment within an if-statement introduced in [bac2060] triggers a warning with Clang:
Would it make sense to split this into two lines?
The text was updated successfully, but these errors were encountered: