[Bug c/36195] New: Add warnings for useless static functions prototypes in -Wredundant-decls
eugene dot zelenko at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 9 21:02:00 GMT 2008
Sometimes static function prototype declared with static function definition,
but function is never called before definition. So prototype in such cases are
definitely useless.
I think will be good idea to enhance -Wredundant-decls with reporting such
situation.
PS
May be this is already implemented in versions never then 4.1.2, but 4.3.0
manual is not mention such possibility.
--
Summary: Add warnings for useless static functions prototypes in
-Wredundant-decls
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eugene dot zelenko at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36195
More information about the Gcc-bugs
mailing list