c/7749: warning: no previous prototype for foobar_func ()
bighead@users.sourceforge.net
bighead@users.sourceforge.net
Wed Aug 28 12:06:00 GMT 2002
>Number: 7749
>Category: c
>Synopsis: warning: no previous prototype for foobar_func ()
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 28 12:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: bighead@users.sourceforge.net
>Release: gcc-2.96
>Organization:
>Environment:
RedHat-7.2 system with gcc-2.96-98 (as revealed by "rpm -q gcc")
>Description:
When I compile a program using autoconf/automake I get a
warning like "warning: no previous prototype for foobar_func"
when infact there is one.
Note: the command line reveals I'm compiling with most of the -W* options on. especially -Wall and -Wmissing-prototypes.
Weird thing is it happens for functions which take no parameters at all, or have a signature like foobar_func (void). Note: both cases.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list