From 882c034c3713855bb15dde84b1bd16dc887171cb Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Wed, 2 Nov 2016 23:55:23 +0100 Subject: xtrans: silence compiler warning regarding is_numeric MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit is_numeric is only needed if X11_t is defined. Silences "warning: ‘is_numeric’ defined but not used [-Wunused-function]" --- nx-X11/lib/xtrans/Xtransutil.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nx-X11/lib/xtrans/Xtransutil.c') diff --git a/nx-X11/lib/xtrans/Xtransutil.c b/nx-X11/lib/xtrans/Xtransutil.c index 4b5bcf2a7..0063e83d8 100644 --- a/nx-X11/lib/xtrans/Xtransutil.c +++ b/nx-X11/lib/xtrans/Xtransutil.c @@ -434,6 +434,7 @@ TRANS(WSAStartup) (void) #include +#if defined(X11_t) static int is_numeric (const char *str) { @@ -445,6 +446,7 @@ is_numeric (const char *str) return (1); } +#endif #ifdef TRANS_SERVER #include -- cgit v1.2.3