diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2016-11-02 23:55:23 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-11-03 00:10:34 +0100 |
commit | 882c034c3713855bb15dde84b1bd16dc887171cb (patch) | |
tree | 1d4cf5792ecc3082b1da51a0232f5aab1df0283b | |
parent | 90612d25ca9a42a4f9bdea9dbd867abb635ba98f (diff) | |
download | nx-libs-882c034c3713855bb15dde84b1bd16dc887171cb.tar.gz nx-libs-882c034c3713855bb15dde84b1bd16dc887171cb.tar.bz2 nx-libs-882c034c3713855bb15dde84b1bd16dc887171cb.zip |
xtrans: silence compiler warning regarding is_numeric
is_numeric is only needed if X11_t is defined.
Silences "warning: ‘is_numeric’ defined but not used [-Wunused-function]"
-rw-r--r-- | nx-X11/lib/xtrans/Xtransint.h | 3 | ||||
-rw-r--r-- | nx-X11/lib/xtrans/Xtransutil.c | 2 |
2 files changed, 4 insertions, 1 deletions
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 <ctype.h> +#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 <sys/types.h> |