From 72c71d39724af116d419295b684dd2946efb3da3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 May 2001 23:36:50 +0000 Subject: [PATCH] warning fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 3aa289c473..0da32b61eb 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -1499,7 +1499,9 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port, se = getservbyname(port, protocol); if (!se) { - if (isdigit(port[0])) + /* the cast to int suppresses compiler warnings about subscript having the + type char */ + if (isdigit((int)port[0])) { int port_int; -- 2.47.2