Commit 882c034c authored by Ulrich Sibiller's avatar Ulrich Sibiller

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]"
parent 90612d25
......@@ -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 (
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment