From f2bda61c03f64133ef68dd1557b26ae7dc5beb0e Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sun, 26 Oct 2008 11:05:13 +0100 Subject: [PATCH] Xext: Fix compiler warnings Make GEClientGone static and include registry.h, to fix the following warnings: geext.c:225: warning: no previous prototype for 'GEClientGone' geext.c: In function 'GEExtensionInit': geext.c:280: warning: implicit declaration of function 'RegisterResourceName' geext.c:280: warning: nested extern declaration of 'RegisterResourceName' --- Xext/geext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xext/geext.c b/Xext/geext.c index 8de4e7cb1..a58db038e 100644 --- a/Xext/geext.c +++ b/Xext/geext.c @@ -28,6 +28,7 @@ #endif #include "windowstr.h" #include +#include "registry.h" #include "geint.h" #include "geext.h" @@ -220,7 +221,7 @@ SGEGenericEvent(xEvent* from, xEvent* to) * Resource callback, invoked when the client disconnects and the associated * GE masks must be destroyed. */ -int +static int GEClientGone(WindowPtr pWin, XID id) { GenericClientMasksPtr gclmask;