[Bug other/71324] New: liboffloadmic/runtime/offload_env.cpp:316]: (style) Redundant condition
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Sat May 28 14:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71324
Bug ID: 71324
Summary: liboffloadmic/runtime/offload_env.cpp:316]: (style)
Redundant condition
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
liboffloadmic/runtime/offload_env.cpp:316]: (style) Redundant condition: If
'EXPR == ' '', the comparison 'EXPR != 0' is always true.
Source code is
while (*c != 0 && *c == ' ') {
Suggest better code
while (*c == ' ') {
More information about the Gcc-bugs
mailing list