From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <alexander.turenko@tarantool.org>
From: Alexander Turenko <alexander.turenko@tarantool.org>
Subject: [PATCH 1/2] Remove deprecated getaddrinfo() flags
Date: Sun,  2 Dec 2018 18:57:31 +0300
Message-Id: <52dc4f82e344f53e0e39cbae96ae4a7452bf79ca.1543765908.git.alexander.turenko@tarantool.org>
In-Reply-To: <cover.1543765908.git.alexander.turenko@tarantool.org>
References: <cover.1543765908.git.alexander.turenko@tarantool.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
To: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Alexander Turenko <alexander.turenko@tarantool.org>, tarantool-patches@freelists.org
List-ID: <tarantool-patches.dev.tarantool.org>

AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES flags are
deprecated by glibc-2.28 and the deprecation warnings did cause fail of
Debug build, because of -Werror.

Fixes #3766.
---
 src/lua/socket.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/lua/socket.c b/src/lua/socket.c
index 84711b441..130378caf 100644
--- a/src/lua/socket.c
+++ b/src/lua/socket.c
@@ -391,12 +391,6 @@ static const struct { char name[32]; int value; } ai_flags[] = {
 #ifdef AI_CANONIDN
 	{"AI_CANONIDN",			AI_CANONIDN			},
 #endif
-#ifdef AI_IDN_ALLOW_UNASSIGNED
-	{"AI_IDN_ALLOW_UNASSIGNED",	AI_IDN_ALLOW_UNASSIGNED		},
-#endif
-#ifdef AI_IDN_USE_STD3_ASCII_RULES
-	{"AI_IDN_USE_STD3_ASCII_RULES",	AI_IDN_USE_STD3_ASCII_RULES	},
-#endif
 #ifdef AI_NUMERICSERV
 	{"AI_NUMERICSERV",		AI_NUMERICSERV			},
 #endif
-- 
2.19.2