From nobody Sat Jul 23 08:58:53 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 4LqgG55LMlz4X7BC; Sat, 23 Jul 2022 08:58:53 +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 4LqgG54kP9z3gWl; Sat, 23 Jul 2022 08:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566733; 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=oj9rvbN+QyUi7UQd+rT08dR8C04Q8bbqoSgTZsx1Mrg=; b=roszYmsvlahevwpb4Z34v7Cxc8CUDgmByL5IzTSIUhjRmwW33TN6SrgQRPYAMcjpoChcII ZHExdApyiitbyWjd9ieKcUb9pgTIhyPYR3ezxzMHF8csAXCRBk1JZX2Yu7mgJjdFdHQOzH mlTUKe+WnJR1BUhgg89Pkgp0XQFhjsthXdW3W/8kt4X4/vJ+pfKJaqEVu6TFGIlYgOp/sS MS0k+jlX8kP4YVYW8XiSu7GxR4CzXzJIfMUzLIBeG9vjuwX/H0TY+qDa2v2LA3JnNzSH91 NwCHd0rz3wRarOl2Ry3LMkjYhxr8nrzYvmv0xGx39XX1ugd3Xt0OHCJI7OgtyQ== 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 4LqgG53KfHzZ42; Sat, 23 Jul 2022 08:58:53 +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 26N8wrSG013167; Sat, 23 Jul 2022 08:58:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wrGb013166; Sat, 23 Jul 2022 08:58:53 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:53 GMT Message-Id: <202207230858.26N8wrGb013166@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: b081180259ae - stable/12 - Adjust dtmalloc_unload() definition to avoid clang 15 warning 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: b081180259aeb573b575df735fe503c9129cfbec Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566733; 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=oj9rvbN+QyUi7UQd+rT08dR8C04Q8bbqoSgTZsx1Mrg=; b=ROHPz/QlLiDhYdB4EN2FNwxv9OmI6girLplimGzIgAWKd/CtrXArV24g9q+dB1B4TkLtCL J9EmqPqjkR86Lcb5dIt02SNK127LC4EIjG+4ILEPAp14R8EdlJ8GfOYhD1K/1N4oSXwHPm rheHeiuIaEbg8CtylfNRsDA+hsGo8LpC+fqp1xrq+ii/kD5uElms9tOYztzJcza0GFLe84 rkNkKffhTNCUcA+4RjsTdNEI8PorvGg1HVuNR89MwbmsD8O8itIc7GfebbzhsKVF09B+qg AUp5g6b0/DmsDePkT/qRib5nUtil+HvZcdhbY0yi7fzyfrMZAltI9BAcEGmeIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566733; a=rsa-sha256; cv=none; b=qoxUR4NGlcsiYH42SUAK3dMoA0FkTPelrODlnWovbuiqa2ofWrHnNPOYMbbai2h0ke3y9I bABeT4QIxTP4x6zhY/4OG70rQknCl25fEMb0WAY6lBzyvmmwd1n9+F853vbstPI8Ga0sFq qpGcwst18Jnhjqdgd8AplJ0fSG2GJHm7i6qH2sl4oIZPaSxyZkTWiJvk1lxHMbvINxDrHk yAjHKRWOz0gptdzgkk5oF/krS8gWCSQkf5ddsG0TPktdV0RLC5Eiu8czb6VaQ51t13xn26 XVGTuI85JwFAlGgYs0IrTPTGQfkJ0+G+y/e7C2IjZqsIZ+817xFlG5gjxrHV+g== 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=b081180259aeb573b575df735fe503c9129cfbec commit b081180259aeb573b575df735fe503c9129cfbec Author: Dimitry Andric AuthorDate: 2022-07-19 18:24:41 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:41 +0000 Adjust dtmalloc_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/cddl/dev/dtmalloc/dtmalloc.c:177:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtmalloc_unload() ^ void This is because dtmalloc_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 a0c55bac79ef684db5f3645fdc1e0fd8da827985) --- sys/cddl/dev/dtmalloc/dtmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtmalloc/dtmalloc.c b/sys/cddl/dev/dtmalloc/dtmalloc.c index 49516a27a635..3a6cad6c939a 100644 --- a/sys/cddl/dev/dtmalloc/dtmalloc.c +++ b/sys/cddl/dev/dtmalloc/dtmalloc.c @@ -186,7 +186,7 @@ dtmalloc_load(void *dummy) static int -dtmalloc_unload() +dtmalloc_unload(void) { int error = 0;