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/Xtransint.h | 3 ++- nx-X11/lib/xtrans/Xtransutil.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'nx-X11') diff --git a/nx-X11/lib/xtrans/Xtransint.h b/nx-X11/lib/xtrans/Xtransint.h index 2156bd52f..f7e07687b 100644 --- a/nx-X11/lib/xtrans/Xtransint.h +++ b/nx-X11/lib/xtrans/Xtransint.h @@ -351,10 +351,11 @@ static int TRANS(WriteV)( #endif /* WIN32 */ - +#if defined(X11_t) static int is_numeric ( const char * /* str */ ); +#endif #ifdef TRANS_SERVER static int trans_mkdir ( 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