Re: trying to understand: "warning: function declaration isn't a prototype"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Vaughan <jv@xxxxxxxxxxxxxxx> writes:

> >Well, I explained why the warning is being emitted.
> >
> 
> Yes, because I haven't suppressed it with a switch .. but what I want
> to know is what the warning means.

There is a friendly manual which describes all the options.  Please
read it.

> TApplContextPtr CreateApplContext ();

-Wstrict-prototypes will issue a warning for this function declaration
because it is not a prototype.  An equivalent declaration with a
prototype would be:
  TApplContextPtr CreateApplContext (void);

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux