From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 4944249776 for ; Sun, 21 Sep 2025 01:20:02 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'cx049AeRpT4FgmQkcfQOwe0vF1sCAIxxWbOEzvDy6fw=', expected b'TUaycUY/8W60BiuXE2drGGJ7Z1RMgmPCYJj3Q9f2WTo=')) header.d=comstyle.com header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1758417571; h=date : to : message-id : mime-version : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=cx049AeRpT4FgmQkcfQOwe0vF1sCAIxxWbOEzvDy6fw=; b=J3wlOC7KxG1uLEuaNYy32DanoTuXLFlQirqtyjsEbwBryz6EbpTrQe4/tiOSJXnj/BzeH mK6T0lb+Zhnzbv72rrlSEynTYwejoHDsNTnSyf7hV/kh+ZuinaONZrjMVlYEN0VCzdao9cN DqoN8+kr76zE9fL5GiFgyrt3NbEIAhGs/krWPWBUdPo7oOT01pU7WjLI8mFp1lAQ6KqcfhL RpozQxLWeGqNASeja92Oz8jX09i7GFHbBuyawleapUqjxLs3Myu1yzfVD0/odB1Jw3a/W/H vbebKuXkdu9epb4+oVlhKxApl+AHgiZw9x8/6C2SekPYtOSOvm6fb8stXfyQ== Received: from [172.19.0.4] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 7ACD268E854; Sun, 21 Sep 2025 04:19:31 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1758417569; b=PfHP3LO6WssxXayW2mTNWu72HB+wHGwMh9Cc8Fx2Qoxb064/lXV/2PlzDJFy8ZRP1mvq5 r/Yj7BCZVzSMhdm5nmlapLGiyXGGo/CabGRKaqZ7BoUymTRJdrI8vzsGewTZwa0Z345v6Lf a1aJR+2Hv9a0GBvPeqEOi+ZtYm5lUvu/om/tWwqxtCLkvZ5Ws5A5QlNCcvx0jIiB+GkBigP zmFCvAYZadrvO+x4hjArKnRieyTM0KNEHGlBaaGhjvt/Rdy3sXuKfwed+UJfGHOZOlfHM7E ITOFQ1sL4iOUl35xDwAT2miPoBV+HnY29xjBhgwyuRSwXhvTbolbIipUy6eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1758417569; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=e9KZQM83dODBFXTlFQIjXGDBXO0Oe98KHDKcKp24l9E=; b=BRe1RuRqc1fU8I3syy14LOO7hfCascHZBs57mdysgdRKCX1NpOTy31supdnOmr4vLWH5M rJKUieVfTtqfoC3mvmHekX6gz1F3MqPmH8VAbYjYA5DkxCDjKwcZDBoowGqprQJgIAR9fWw 9QfDKGwKsuoz4NHsx07T4QsKFOhTUBdDf08MCiZvm74FIXDCNCrwy2RVCrmGi5YcN0AC+NV A8u+SrCsjggr0qC+lWehcc9t56Z4UjPpM7+BKOZce+EQfFWKNAhqKal0rbyE6xVeLo1A+q2 n9yCqUY34SsQIqk/Q2wS1281mm54ofBHSa8vh0JyU7ckGS8mgO6WPM3Q7C/w== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=comstyle.com; arc=none; dmarc=pass header.from=comstyle.com policy.dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=comstyle.com; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=comstyle.com policy.dmarc=none Received: from mail.comstyle.com (speedy.comstyle.com [206.51.28.2]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 6A9756800AC for ; Sun, 21 Sep 2025 04:19:12 +0300 (EEST) Received: from mail.comstyle.com (localhost [127.0.0.1]) by mail.comstyle.com (Postfix) with ESMTP id 4cTpL62JXLz8PbQ for ; Sat, 20 Sep 2025 21:19:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=comstyle.com; h=date :from:to:subject:message-id:mime-version:content-type; s= default; bh=TUaycUY/8W60BiuXE2drGGJ7Z1RMgmPCYJj3Q9f2WTo=; b=Rjgq UWLxHDl3p2/n6TdfT9cg1Vx0+bxN/uFO/IPVPFcqob+zH5z+aKr1m8QArzQsDv4s G3GEyWz2zh7AmIziKgbvqBo0C3K34R4+cMolD+55HZvUQV4PGqNJRUyzx/SApAHO iYcrAV9f6iQMW6hCyl6uT7EEJZFmkQSxus39sqU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=comstyle.com; h=date:from:to :subject:message-id:mime-version:content-type; q=dns; s=default; b= kV7y/gJxCE8BirJGv9m2BpJFDoF1vHQD1BU5oswnxyNjNEOtDYGLUZfBbib14PoR ytg4X5GxnDElP7zqZzYhFA3RYUSGycebJtRSDLNPuRYS8yrgcAEudQkHnt7KWkVq ginOHTLJi6tSvlv8topkLZAm0AjaQ2IFWInu2y1D/U4= Received: from humpty.home.comstyle.com (unknown [IPv6:2001:470:b050:3:8f62:54a0:12de:bfe6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 4cTpL6012Lz8PbN for ; Sat, 20 Sep 2025 21:19:09 -0400 (EDT) Date: Sat, 20 Sep 2025 21:19:08 -0400 To: ffmpeg-devel@ffmpeg.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline Message-ID-Hash: AYYQ3GDMFE2TLBQVU4H6ME6SXVWSLXT7 X-Message-ID-Hash: AYYQ3GDMFE2TLBQVU4H6ME6SXVWSLXT7 X-MailFrom: SRS0=qdO4=4A=comstyle.com=brad@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH v2] avformat/udp: fix warning about unused varible List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Brad Smith via ffmpeg-devel Cc: Brad Smith Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: libavformat/udp.c:283:9: warning: unused variable 'i' [-Wunused-variable] Signed-off-by: Brad Smith --- libavformat/udp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index e1dec49010..839c301369 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -282,14 +282,12 @@ static int udp_set_multicast_sources(URLContext *h, struct sockaddr_storage *sources, int nb_sources, int include) { - int i; if (addr->sa_family != AF_INET) { #if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) /* For IPv4 prefer the old approach, as that alone works reliably on * Windows and it also supports supplying the interface based on its * address. */ - int i; - for (i = 0; i < nb_sources; i++) { + for (int i = 0; i < nb_sources; i++) { struct group_source_req mreqs; int level = addr->sa_family == AF_INET ? IPPROTO_IP : IPPROTO_IPV6; @@ -316,7 +314,7 @@ static int udp_set_multicast_sources(URLContext *h, #endif } #if HAVE_STRUCT_IP_MREQ_SOURCE && defined(IP_BLOCK_SOURCE) - for (i = 0; i < nb_sources; i++) { + for (int i = 0; i < nb_sources; i++) { struct ip_mreq_source mreqs; if (sources[i].ss_family != AF_INET) { av_log(h, AV_LOG_ERROR, "Source/block address %d is of incorrect protocol family\n", i + 1); -- 2.51.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org