[PATCH 6/9] xcmisc: warning fix

Daniel Stone daniel at fooishbar.org
Fri Dec 31 04:30:55 PST 2010


On Fri, Dec 31, 2010 at 12:29:57PM +0100, Mark Kettenis wrote:
> > From: Daniel Stone <daniel at fooishbar.org>
> > Date: Fri, 31 Dec 2010 02:00:20 +0000
> > 
> > From: Adam Jackson <ajax at redhat.com>
> > 
> > xcmisc.c:202: warning: no previous prototype for ‘XCMiscExtensionInit’
> 
> Sorry, but what's the point of the #if 1/#endif around the prototype?
> 
> > +#if 1
> > +extern void XCMiscExtensionInit(INITARGS);
> > +#endif

Not a great deal, but it's in context: all the other extensions have an
#if/#endif pair around them, including mandatory extensions (XTest,
Security, panoramiX, XKB) which have an #if 1/#endif.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101231/bfd007d7/attachment-0001.pgp>


More information about the xorg-devel mailing list