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
The union (i.e., bitwise OR operation) of oroApi elements is not an element of oroApi. But the current API deign forces us to cast the union to oroApi, such as oroInitialize(static_cast<oroApi>(ORO_API_HIP | ORO_API_CUDA,.
For this case, the Clang analyzer can detect the out of range for oroApi and warns. To avoid such out of range, it may be better to change the function parameter type from oroApi to uint32_t.
The text was updated successfully, but these errors were encountered:
Orochi/Orochi/Orochi.h
Lines 1161 to 1170 in e8da229
The union (i.e., bitwise OR operation) of
oroApi
elements is not an element oforoApi
. But the current API deign forces us to cast the union tooroApi
, such asoroInitialize(static_cast<oroApi>(ORO_API_HIP | ORO_API_CUDA,
.Orochi/Orochi/Orochi.h
Line 1257 in e8da229
For this case, the Clang analyzer can detect the out of range for
oroApi
and warns. To avoid such out of range, it may be better to change the function parameter type fromoroApi
touint32_t
.The text was updated successfully, but these errors were encountered: