summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-24 07:43:07 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-01 08:55:03 -0700
commitcbdb434033da1725a69014cc6e4d89c691a6fd95 (patch)
treebfdea46cdeddf426ff7bb1ab736fbb6696a80c83 /transport.c
parentcf39d738086b0a7c668fb3720d64de8d711a1a97 (diff)
downloadxorg-lib-libxtrans-cbdb434033da1725a69014cc6e4d89c691a6fd95.tar.gz
Fix warnings about static functions declared but never defined
Add #define XTRANS_TRANSPORT_C to transport.c and check for it before making static function declarations and other bits needed only when compiling the Xtrans code itself, not from other sources that include the Xtransint.h header for the struct definitions. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/transport.c b/transport.c
index 0013b01..c14057d 100644
--- a/transport.c
+++ b/transport.c
@@ -53,6 +53,9 @@ from The Open Group.
#define xrealloc(_ptr,_size) realloc(_ptr,_size)
#define xfree(_ptr) free(_ptr)
+#define XTRANS_TRANSPORT_C /* used to flag Xtransint.h that it's being used
+ here, not just #included in another file */
+
#include "Xtransint.h"
#ifdef __clang__