From d192bac409fe5ef99fa9fb9b5a0d5f656f0f1412 Mon Sep 17 00:00:00 2001 From: Tomas Carnecky Date: Wed, 4 Feb 2009 15:26:18 +0100 Subject: Fix "XXX declared 'static' but not defined" The functions are declared static in Xtransint.h but are defined in Xtransutil.c. So when someone (xserver/os/connection.c) incuded Xtransint.h, gcc would throw the warning. I removed the declarations from the header and rearranged includes in transport.c so that Xtransutil.c is included just after Xtransint.h. This way the functions are still defined for the files that need them (Xtranssock.c, Xtranstli.c). Signed-off-by: Tomas Carnecky Signed-off-by: Alan Coopersmith --- transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transport.c') diff --git a/transport.c b/transport.c index 5131d99..baf5bfd 100644 --- a/transport.c +++ b/transport.c @@ -59,6 +59,7 @@ from The Open Group. #endif #include "Xtransint.h" +#include "Xtransutil.c" #ifdef LOCALCONN #include "Xtranslcl.c" @@ -70,4 +71,3 @@ from The Open Group. #include "Xtranstli.c" #endif #include "Xtrans.c" -#include "Xtransutil.c" -- cgit v1.2.1