From nobody Tue Jul 26 19:25:23 2022 X-Original-To: dev-commits-src-main@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 4Lsn1c0PDrz4Wvpp; Tue, 26 Jul 2022 19:25: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 4Lsn1b4Xm7z3yTX; Tue, 26 Jul 2022 19:25:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863523; 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=6DqTA8ectBGvXlbgUlCy2DyIrU4gnHlHKUHe0hrM0mY=; b=ojUS1HmR03wyS19FWdd+Zy8pVvmjZFRmhJ8MkE1dl6we2AiyABiXpWavGjT2iK7vpwzp3F wWuqxEYpFh5TQbCvi0+ANJA48Umfuh79o9v0B5Zwx5j0gRMpg8EbTG3XUqid4+2N06xy/6 3p3uyiI299D/qOD/NTes7hLo6g2sw0/WhRyGUbuVb7Hw+pWrdHy5l6/ajbeg3vpcaIA1OR lqwbT64j6vqcon07N4kYXt+JabC7MqtZHqIEXf/Vv37S/SbiaKacKsKxAk+GRqDn9nOcWK uVK3hX1p111m7ZLZLqMiQCiW8XIKuGIj0f/2qUESpEBzDufKFnoJxPmT+JEvuw== 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 4Lsn1b3fCqzpPn; Tue, 26 Jul 2022 19:25:23 +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 26QJPNqf019685; Tue, 26 Jul 2022 19:25:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPNch019684; Tue, 26 Jul 2022 19:25:23 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:23 GMT Message-Id: <202207261925.26QJPNch019684@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 50207b2de9a5 - main - Adjust function definition in nd6.c to avoid clang 15 warnings List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 50207b2de9a53491c2b5ee9b96689333f5c46de5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863523; 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=6DqTA8ectBGvXlbgUlCy2DyIrU4gnHlHKUHe0hrM0mY=; b=h2u2+HitgbLfIX1ptxRBSfpoyn+/bkR7XlLvTqVXrQojW6xO3+3DKTGphXcHTcTL9ob4i9 anUY6z1GS68VxEHgIsvJF/+Td2U54xdws0lL/RFYwDn/kMfjDBCxVAOT/+zoZB+RCRNsiV RHCCFrcWMvmJ5/3krZ/mpCDntSfe5o1csOF8RB7VNlRKhyVIAtDKD9d+DZ3SYYfR6IerAD y05Q9ekaWMHuWFbpfNz4ulZ/yB7/TCTwT14a9vwWLIsb2b+ryVIvDT4TMomv9Bgfca2wrW aadsfAxItyh+83ThpVEya6WLtAeW+iygdu/LwOMUr7SFNadUYmUGVOw9yqprOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863523; a=rsa-sha256; cv=none; b=KNeu6ycMaqoABQ3s/NJKiAtuvOkYAS2XT+k/0GD9Zh0u4f6RAwYx/v/5abWhKpOPLxi908 hNwShX1CmnK3Ze5TT1cBEYyMafmCV93tUjs92HmRg2PZQjqlotUL9SBNOb9uc2BPS0EK5K XqQ/4dD6oT6JNiJ2nJAVEnzTixedLFKcZPM8Sm+wqEOu0yX9O4tdqBlizfdaQcQdlAgZ4U EH5+QGuR7CN8rUsDdvtwLBlEUW7oU5ZBKJIZMzcvVJiFOKfxLXqdDz85vBEAlxX1iMoigZ /h1j7s9e1pduOsATDig3ypQd4RiTmAPOy4oM8izJ8t3js2NL8/VOqFIQUDStVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=50207b2de9a53491c2b5ee9b96689333f5c46de5 commit 50207b2de9a53491c2b5ee9b96689333f5c46de5 Author: Dimitry Andric AuthorDate: 2022-07-26 19:10:58 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +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 --- 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 efd504c37799..7144743bbf27 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -244,7 +244,7 @@ nd6_init(void) #ifdef VIMAGE void -nd6_destroy() +nd6_destroy(void) { callout_drain(&V_nd6_slowtimo_ch);