[Bug c/84510] New: C front-end does not utilise -Wuseless-cast
bje at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 22 09:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84510
Bug ID: 84510
Summary: C front-end does not utilise -Wuseless-cast
Product: gcc
Version: 5.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bje at gcc dot gnu.org
Target Milestone: ---
The -Wuseless-cast option only applies to C++ and Objective C. It would also be
useful in the C front-end, particularly for finding 'do nothing' casts and
casts of literals, which the compiler can do itself by inferring the type of
the literal.
More information about the Gcc-bugs
mailing list