From nobody Fri Jul 29 18:48:30 2022 X-Original-To: dev-commits-src-branches@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 4Lvc3g1gDvz4Y27x; Fri, 29 Jul 2022 18:48:31 +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 4Lvc3g0z6Dz3t3F; Fri, 29 Jul 2022 18:48:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120511; 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=uVbY2fOEMKJ2MQv2ent4K9zOIidVrD0HjCSo5D1tN9g=; b=Z+HstIxSaRjNGvYPHOK11dPctVfI3UegpM022cj9WIBOH5iEa0Rp+KqD+Qp1X6DlCekJMJ 0vtdKlC6AySSWPCJlAqvwonnbZYImeXNcyZXRXHBZk5jX5JSJWs8zBaJcpX8hJ/a1IGXuC 44kt2DPOKEKNnc+i2YQVH3zBu/OVG4ECS2Y7WlBJlWDNmq22IuHm65a5t73/+d3vUx9xqQ iWJk9oIDL91TJLPeIrKDC45tdKdaq1duFfhSGmP29LIMTdzpdmKDzBnWNcD4Jo3jhx6WOA 9NTxRG7EnfNsczDdE4AOZqmOzQRi6nOZu4bgPdtRjA0nw1ZUmwJ4bPk/uKwe/g== 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 4Lvc3g02n5zm4B; Fri, 29 Jul 2022 18:48:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26TImU54025478; Fri, 29 Jul 2022 18:48:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImUc8025477; Fri, 29 Jul 2022 18:48:30 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:30 GMT Message-Id: <202207291848.26TImUc8025477@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 3e1adb29f771 - stable/12 - Adjust function definition in nd6.c to avoid clang 15 warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 3e1adb29f77112744913b59ed0d029dcdd8c92ae Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120511; 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=uVbY2fOEMKJ2MQv2ent4K9zOIidVrD0HjCSo5D1tN9g=; b=cVmLoRcPaYrrlkxnMfvy5DQwcgtdzCPXVwQxl1uJ6jmPS77IAfAsTLSSAfxptVABc74QmN wZV8YnkyThR2PaTYxaJsORvDo+JMtlw5yikKmoXHxyd0VaaZKHeje4uPVLggrDE0KkRP1g hIda5HSBg2M3s6IfJ+C5F5DfLNmSeoPeCRzcRST+1//0aRw6dXXcuh2Xz2e3EkggXjVvxu 1OcKOyk6lbqAKbONA5kgh25E3j2fLC+OxJNdCWhruE+QjYT5K9vBBQd/SZM9MIWfe76kW5 ge6Dc0f25p8Ll9KsKlPmTXYDkfIG5tBPDP1Ifdox4VO3FHYn5tpGOn+y1FuxIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120511; a=rsa-sha256; cv=none; b=fjgOWTMji48EsgOhUU3n8gicuUj5tU7u9QYW+UcYA0pU9mOrkg0Rx2gclMJw/iWbOgLv6O ZGHw5gL9Ajlk6so5A5d6buyvpBN7IfekaNLqZ/FvALb6iOypkBatyFIerNf8HMCJ4+i6NO Dkc0Tkly9dYOaLET5XbIRLI3oX6l0vt10SbXVw/aYwX+77wKk2TF3plAorKATSQSAVdKLc yivXDYkJMGSr9K2oFnbh2TtVZXGlrHfHYevfAXb05DPcHn6LM/CC7HvwdllSgy4x+Srmrg Kkg3B3+E9HMdqTM/QVI+KRBu4gwqigMOyn/uEz7/1h/y5T1FdswdKUY6lNJvNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3e1adb29f77112744913b59ed0d029dcdd8c92ae commit 3e1adb29f77112744913b59ed0d029dcdd8c92ae Author: Dimitry Andric AuthorDate: 2022-07-26 19:10:58 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:36:11 +0000 Adjust function definition in nd6.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/netinet6/nd6.c:247:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] nd6_destroy() ^ void This is nd6_destroy() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit 50207b2de9a53491c2b5ee9b96689333f5c46de5) --- sys/netinet6/nd6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 682a635ce5c2..fb308b79885a 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -241,7 +241,7 @@ nd6_init(void) #ifdef VIMAGE void -nd6_destroy() +nd6_destroy(void) { callout_drain(&V_nd6_slowtimo_ch);