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

Reply via email to