This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/7749: warning: no previous prototype for foobar_func ()
- From: bighead at users dot sourceforge dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 28 Aug 2002 19:02:30 -0000
- Subject: c/7749: warning: no previous prototype for foobar_func ()
- Reply-to: bighead at users dot sourceforge dot net
>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: