From nobody Sun Jul 24 11:02:24 2022 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 4LrKy83PjRz4XXdG; Sun, 24 Jul 2022 11:02: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 4LrKy82Wh5z3dPZ; Sun, 24 Jul 2022 11:02:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660544; 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=Lb+BHIqvk5nluq/5EHIIWEMqxokMGXbdY0X66prUAE4=; b=tBCn3/2Ku51B56MtioqLzW0F5MVIZnPJkyiBKe7j96YsVKud6r+sqxHx/mWLb1YEo5FlP+ W8jlu5L2CRj106ILlxz5q6SAhOwBf9Qt5nsxevA7YJ1hDC7/53ZZpOV9d8u+G8Q6IVhTdU 2bMU8sx7Xak5De6XEVRP/v4ROLyuRlNuSRJ7+R0xU9rgcS/+uO7MYebg3yLxx7y9ozFiae a8fF7D+R3aGBnbcBDvkVU003hb97GocxdflhFzfyW1C5WNxT+VPFaQio0tG6wAULq0PMWO P4zedMMgcG3qvt4FxUk+00KKzwSfAGDrwHbcSOiuTOFRRT65c4bDGPZueBLrcw== 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 4LrKy81djXzGcp; Sun, 24 Jul 2022 11:02:24 +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 26OB2Ore041488; Sun, 24 Jul 2022 11:02:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB2OiL041487; Sun, 24 Jul 2022 11:02:24 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:02:24 GMT Message-Id: <202207241102.26OB2OiL041487@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: d1d048891bdb - stable/12 - Adjust fbt_unload() definition to avoid clang 15 warning 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: d1d048891bdb685fd0a465dfa0e30ea23d30a51e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660544; 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=Lb+BHIqvk5nluq/5EHIIWEMqxokMGXbdY0X66prUAE4=; b=F0Vw9iUNkPJwmysQbSAb1OZMUolCfyTrulpJqfQpKQ24rgAfBQK0dnIlwXpFav456khEi5 Sv2P/pJFsQ6+0jj/u50DOHR3vG+iW8YVTS8qYl5fkvpJMR1TxYGZTikaqhDKyCmLCk52D1 D9oWgga4EVdJhz70vMDkukXe4aA416ytMP1IqUJmTAVyYgXPHEsBWdyn4/Y5rN4M9dg5Si xivdle8+G8UGGVj4OCaGyM2zxgpH8onmmLzjKO17OdYOfw/nLLB2RAJEdt+NB7h0gFCFhw EC1jL572YPBx/AyxJQo6LY7XwvWOVBzX+D/NHe8iyIuP9IXqNrDIy1s9KnzypA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660544; a=rsa-sha256; cv=none; b=jlTrf3jsoy15Xj/GPJVkZNTo2ZHA3y6OgqAwubNjr0Y5UzLgoB946ZVfgN8K+doFqqu+Fs n2+bWHfbZ6sQkGOc1X6/QWT3d3UCReDavheqKCQq0xTxQW8AO4knuRvC28W7UKdffdMFeb Qzvx+shxcPH5kXK5vNQPOtIoXLFLD/vb8huxE4Tt4Rjo82WDskcptGGWiswRHxlSwHWcTN elRy6pFSy5IDrN9YPLwnslrk6WObr3NQTEGQt1UfNvZTwrTr6Z2B9h35I1bbEf8yg5uCyD iwZaTQfyM033o+IUsQNgl8PdWTfGPdx7wZh/ADLShBdlrh0ONRzSxVQf60FLTA== 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=d1d048891bdb685fd0a465dfa0e30ea23d30a51e commit d1d048891bdb685fd0a465dfa0e30ea23d30a51e Author: Dimitry Andric AuthorDate: 2022-07-21 17:40:38 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:01:20 +0000 Adjust fbt_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/fbt/fbt.c:1273:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] fbt_unload() ^ void This is because fbt_unload() 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 6339314c737f44477c1168819353087c2f4816eb) --- sys/cddl/dev/fbt/fbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c index 775100c0a68b..1453b905205e 100644 --- a/sys/cddl/dev/fbt/fbt.c +++ b/sys/cddl/dev/fbt/fbt.c @@ -1135,7 +1135,7 @@ fbt_load(void *dummy) } static int -fbt_unload() +fbt_unload(void) { int error = 0;