From: John Levon Subject: Re: [PATCH][TOOLS] libfsimage, pygrub, python: cleanup Date: Fri, 18 Jul 2008 16:15:07 +0100 Message-ID: <20080718151507.GB23904@totally.trollied.org.uk> References: <200807151543.16172.Christoph.Egger@amd.com> <20080715223624.GA1589@totally.trollied.org.uk> <18560.42053.605918.889433@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <18560.42053.605918.889433@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Christoph Egger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Jul 18, 2008 at 03:10:13PM +0100, Ian Jackson wrote: > > > fsi_plugin_ops_t * > > > +fsi_init_plugin(int version, fsi_plugin_t *fp, const char **name); > > > + > > > +fsi_plugin_ops_t * > > > fsi_init_plugin(int version, fsi_plugin_t *fp, const char **name) > > The purpose of -Wmissing-prototypes is to spot this situation: Indeed. > However if you don't understand this, you may do what the submitter of > this patch did, which is to change a.c to read like this: > > a.c: int function(void); > int function(void) { return 1; } > > This completely defeats the point of -Wmissing-prototypes; I think > it's just wrong. It doesn't even make sense for the compiler to warn about the above though. It's not called anywhere (that the compiler can detect: certainly not in that C file). regards john