This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/7749: warning: no previous prototype for foobar_func ()


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]