summaryrefslogtreecommitdiff
path: root/Xtrans.h
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-04-24 19:39:26 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-04-24 19:39:26 -0700
commite05d7abbcf880099058b699ac52f65edcac95582 (patch)
tree89f08bae171474b5e4060b1586c27c5ccaa04128 /Xtrans.h
parent27ae0ad1406a33919ea9f76034495bca7cccf051 (diff)
downloadxorg-lib-libxtrans-e05d7abbcf880099058b699ac52f65edcac95582.tar.gz
Silence warnings when building with clang
/usr/X11/include/X11/Xtrans/Xtransint.h:349:12: error: unused function 'is_numeric' [-Werror,-Wunused-function] static int is_numeric ( ^ /usr/X11/include/X11/Xtrans/Xtransint.h:354:12: error: unused function 'trans_mkdir' [-Werror,-Wunused-function] static int trans_mkdir ( ^ In file included from /usr/X11/include/X11/Xtrans/transport.c:67: ... fatal error: too many errors emitted, stopping now [-ferror-limit=] Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'Xtrans.h')
-rw-r--r--Xtrans.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xtrans.h b/Xtrans.h
index 7670d48..5eac908 100644
--- a/Xtrans.h
+++ b/Xtrans.h
@@ -57,6 +57,11 @@ from The Open Group.
#include <sys/socket.h>
#endif
+#ifdef __clang__
+/* Not all clients make use of all provided statics */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-function"
+#endif
/*
* Set the functions names according to where this code is being compiled.
@@ -127,6 +132,9 @@ static char* __xtransname = "_XTrans";
#endif
#endif /* !TRANS */
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
/*
* Create a single address structure that can be used wherever