-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[GPU] address coverity hits #4103
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
Conversation
make test |
0519ddc
to
f90f8ce
Compare
make test |
for (req_kind_t op : {req_kind_t::_or_eq, req_kind_t::eq, | ||
req_kind_t::ge, req_kind_t::le}) { | ||
auto s_op = to_string(op); | ||
const auto &s_op = to_string(op); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one might be dangerous.
to_string()
creates a prvalue which is then bound to a constant reference. From C++17 onwards this is called temporary materialization and is legal — but are we sure that the usage of C++17 is mandated when building oneDNN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f90f8ce
to
92d97bc
Compare
make test |
Addresses MFDNN-14280.