From nobody Sat Feb 03 05:09:24 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TRgfr6Qhfz58Kbv; Sat, 3 Feb 2024 05:09:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TRgfr5sN2z41vn; Sat, 3 Feb 2024 05:09:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706936964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i2QleK3RdM86sWzPP/NLk3dX6S66GQiPdafUy73nTrg=; b=Qm83WlVHQuxXeoMVhjM9nIVNKMnH9UoaSaLC+OUrZWYDu2mKyBCtjZHYAPxtfNkg+hvP3f Z13HSVLO/33nQzNiJgAGComVdiw4MqZGvd1GcISkwIPJL8PAxo/xrGAi+Gq4M4mXQeBLpO NRwjVLmrDpJQO/ozVxQhDXs/uS7i+krb+BMd9xZ+rQC3TKx1nUk38QHAF8zheojUkNjvcU J6gBMpAeq1HxKM475GejnMaRN4V1RtF6lfEf2MDlQVRsrhilLAcAqcwsfmha6CY8oNmhiY aI+KbijJmc/OJahTrCT7DmnNaZpw3+xwUikbXDkVukGQ7hvvZahZKzm8d8E50w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706936964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i2QleK3RdM86sWzPP/NLk3dX6S66GQiPdafUy73nTrg=; b=MAte9zytvukJrSzaQ+iVa5oH5pn30r3odcJrHFfLZoEEJnSpVlWhN+StobmjPRQqz1l8v9 PulRIVBumLILfy/AdBTyofu4COOJubKDTFTsDOO2nSEzPNLlTK6Lli1b+Q7N8UZJk9Mp6B 32v+CvI59+5Vsxa7x1h0rHAqQGDIDGbCNsMX/UtRYHszecphNFFOllSaLcim61OsAI/kX2 OB+DYbVa4lS0WjhAOa/2Rj8mV5PYKiWHUTqXd+VKBFyO2cIZJTI9eKJBV8zQKdZVy3FVZO xPAIjf8Qb433wBRfpcdimoaAITR5DOUb9tGPPBy3NJlaYur/T8z7XDuRp8X6uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706936964; a=rsa-sha256; cv=none; b=NukjJvP77mCzEVA8kI/4aEdXtU3K9rMU76Q4308iDDYyGGBMKH6JoQqR+o08hHD0yVYZmI JSDS+GTDM8F2+PKcQGEi793KQon9rOg2Z0/x9LveZs7Y5QtrHRjYcmH92Qp/NcUHfLVzYm i4H6LaY8ABxh/JgGG82QmmsctunBtrJOIGuPmiwh0FDS/eGPxeYEWswZh3PwSIK7lKz8wD vhPtXsWgLmkCsB19VLAteyzz/DLvRxCquOKUt21bgibIja0LfsSbvNLyiYPBRKqhLbH4aJ R4s0Ll0YGsogm+/ClHFT4/FpRiqtIDWjfo5ttZadzHAMY6OS3g6p6szmO0eS2g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TRgfr4k94z11DG; Sat, 3 Feb 2024 05:09:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41359Oxx068122; Sat, 3 Feb 2024 05:09:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41359OlJ068120; Sat, 3 Feb 2024 05:09:24 GMT (envelope-from git) Date: Sat, 3 Feb 2024 05:09:24 GMT Message-Id: <202402030509.41359OlJ068120@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 70f5c6e34ffd - main - tests/netinet: push variable 'sin' into function scope List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 70f5c6e34ffd21c5dd41e35c72dc1b0e84d67a21 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=70f5c6e34ffd21c5dd41e35c72dc1b0e84d67a21 commit 70f5c6e34ffd21c5dd41e35c72dc1b0e84d67a21 Author: Gleb Smirnoff AuthorDate: 2024-02-03 05:08:16 +0000 Commit: Gleb Smirnoff CommitDate: 2024-02-03 05:09:02 +0000 tests/netinet: push variable 'sin' into function scope This should fix build with GCC 13. Fixes: 861274c9f8cf2a5c00ded9580ea91b22def683f7 --- tests/sys/netinet/tcp_implied_connect.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/sys/netinet/tcp_implied_connect.c b/tests/sys/netinet/tcp_implied_connect.c index 2961626d5e5b..6e8cb0606a0a 100644 --- a/tests/sys/netinet/tcp_implied_connect.c +++ b/tests/sys/netinet/tcp_implied_connect.c @@ -33,17 +33,15 @@ #include -static struct sockaddr_in sin = { - .sin_family = AF_INET, - .sin_len = sizeof(sin), -}; - -static const char buf[] = "hello"; -static char repl[sizeof(buf)]; - ATF_TC_WITHOUT_HEAD(tcp_implied_connect); ATF_TC_BODY(tcp_implied_connect, tc) { + struct sockaddr_in sin = { + .sin_family = AF_INET, + .sin_len = sizeof(sin), + }; + const char buf[] = "hello"; + char repl[sizeof(buf)]; socklen_t len; int s, c, a;