From patchwork Sun Apr 15 23:33:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 8458 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.1.85 with SMTP id c82csp228972jad; Sun, 15 Apr 2018 16:33:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx492fp9IeeByOCGs0EvOI85kPJslscUkhvJ+KgIk2JmvL0rrLDGr7YhmYnnjF7HZ6obxnc3R X-Received: by 10.223.219.16 with SMTP id s16mr9132250wri.123.1523835204798; Sun, 15 Apr 2018 16:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523835204; cv=none; d=google.com; s=arc-20160816; b=bEgl9GWOp+enVpDeu5GV1nG+PcDZpkOXEuUDHyYTYT5Z0j7y55waq91FOaPcjVZgqT B0UZo5azVe9Eeof59skSkx4pYmRMBdcHAQdjvyqTdSqDyp66Ffyy2OiLI/ajH6WvMADt /inpqhtgdP/yaIyc1cmfiyRpiiXKQY4s/+p2nuyjtrbvzeeHvzqGA1qmGilYdN+/V/o9 mKc4JOfP+x2L/+BeBWvv6pjSbpCxkZLBrzGEOmoHfyI0+dcudUiW5BzWn6YKx7x5ckuz 1G5sOptsR95UJ/avF3kp/uEJe9tWABF+/38RzAMUP1qYMnjrW+NKWPV3lu+ygO4o0yrC D2ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to :arc-authentication-results; bh=QGJuojyOWN18oOP92s/fvBUvwi7aBsqx/nH/4BOsmCk=; b=CWyH+Bf8coViDUPLIUHnZmaBxbOr8mWOrZ8+MOLLHd0891SWQKiy/jCNUARPemSpAi v4GV0mXqYxq2nq0Bu4s1tnh7CxQpjJ0lYNRHa1o71DehPpHPLBdw0cMmp63YSHp0M2E2 xoOMPteF5rlnZz8JAuLgwTnbRQnQNSsos57VLWlsRp+thmaMpgLbrJEjzP6r+dsreaB3 9yKwVqjh4ryofVqvHtgsryiGpVtI5fX7ZNCLtUuBeMh1FhQTXakzifSupJ5I6Tr6V0IJ xyre3RHi3RotmByE7g0DZvEsOm0uSb4sEr+bZDi/697Vvw9R8DRCqep3s4L+VVQSh3iS OgUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bBNnSABA; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 11si4113839wmw.163.2018.04.15.16.33.24; Sun, 15 Apr 2018 16:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bBNnSABA; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A9F5D689D34; Mon, 16 Apr 2018 02:32:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0EB2168972B for ; Mon, 16 Apr 2018 02:32:50 +0300 (EEST) Received: by mail-it0-f42.google.com with SMTP id x144-v6so10181118itc.0 for ; Sun, 15 Apr 2018 16:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Kdxg1fMf9OAZ1kjc5Z54Wl8mWZ4bkyj2sIqioztAGvc=; b=bBNnSABAt0Rv7KqwGRbuv+52WZxTauC9zlib21sT6VWtMK8o8Ka/Nx0Ih4h3OBh5ks /lpcBERszZNMRld/bZDrxLXB+4isUwsA8xOqKruPA5A7iOr4afj+9225hgUKMGas1kDr wDWduiLUPJkKap04e3S95tH+dw9IpAFx5Tv+vtNi7rX3PbbneiiKmuEQTb/3xt59jreb XIuYkPZxwxVyCPe1aYr4MOExjBMfCv6DTY3SPey0w/JpMsF1aCXDfesP4pqh4AfFjeUu 9z/UEh6/EK1BZtiAtcQSUVAmmaPeQZlnIBMiqdn9m2cahsMDDbVh8QZOcRFsj5NmSOZA T1Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Kdxg1fMf9OAZ1kjc5Z54Wl8mWZ4bkyj2sIqioztAGvc=; b=qWflYUq/CJS/C3SvTUV0WytuRQkRlRGsr+xXBirtyPuvGGIi6ICckBruMN5C+HqK6y 3JBiMH5XBdY7cQ4eBGEDJPspd7BqI2CoZaeN2GXjW6Wp52SCSqODh2Sv7vEPxLHkKPYd LLEFSaoI2eU1lmbAjFf4f3PBYz4F/XLZoRQFpM3PaLOEA+lxSG1GjKNW9rqS2AG5k9P4 VMcNl8q3jR+85LTrs12UhmCynCnOdGFyHRVeeQeY49AyKcBNV2K6LJg1bG2WpMASGgIa fEdY0u+PBhfkv7Fi27J0MUGwiu1lS2QgAIRMETNnWWAnnS7TVSF/JhCERZxB0PU9rZ4U b0/w== X-Gm-Message-State: ALQs6tBGKAALtXGPkDg7EMXIiezkEspUKTEa2u8+89UW6HZ+5sA6lBqX B/XYhZ0z6uBjjAHjFMiX2EeMXqUP8AWAZ2KqglQ= X-Received: by 2002:a24:1c49:: with SMTP id c70-v6mr14202198itc.1.1523835194672; Sun, 15 Apr 2018 16:33:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.3.78 with HTTP; Sun, 15 Apr 2018 16:33:14 -0700 (PDT) From: Carl Eugen Hoyos Date: Mon, 16 Apr 2018 01:33:14 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] lavf/os_support: Only compile inet_aton() if getaddrinfo() is needed X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch is supposed to silence a user-reported warning when inet_aton() is missing but getaddrinfo() is supported. Untested. Please review, Carl Eugen From 9d31a8c99953a2144e2f24d79da4cbc57987f365 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 16 Apr 2018 01:28:47 +0200 Subject: [PATCH] lavf/os_support: Only compile inet_aton() if getaddrinfo() is needed. Silences a warning: libavformat/os_support.c:49:12: warning: 'inet_aton' defined but not used Reported-by: Reino Wijnsma --- libavformat/os_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 099d7b5..15cea7f 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -43,6 +43,7 @@ #include "network.h" +#if !HAVE_GETADDRINFO #if !HAVE_INET_ATON #include @@ -62,7 +63,6 @@ static int inet_aton(const char *str, struct in_addr *add) } #endif /* !HAVE_INET_ATON */ -#if !HAVE_GETADDRINFO int ff_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res) { -- 1.7.10.4