From nobody Fri Jul 29 18:48:52 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 4Lvc450nZ6z4Y26b; Fri, 29 Jul 2022 18:48: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 4Lvc446kVWz3v8h; Fri, 29 Jul 2022 18:48:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120533; 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=ROQPuhfz4leAS0oMJYCrvNXEibuuhohNRLBAiQUIRXo=; b=C+kNpZJnh5xQLAvsSwtgQjLQcRxH/zAfT1h81ez+/m5MIE0YbarfgIuzEzPmYG3dl/GHg7 9iAz1u2z5NWeOxWgOYfCPe522RLHiy7H4/Pkka8pIQvXKsR3hSenD0W8BTA5Iftq5xCt37 GAidyb4ibCm0hRDwbVC/SD9IkwSUZicaWH28T2cE/rZnzgXMPsATKghKuK0jbR+x5udHnU /cFHQmyjhtqRBbQXGuXCbKyzh9y90d+PnxIyFokl9DUSGRWfOUGKHdZwiTNJqOOa+Akszp DE2BBL7qXr0EGEcC2y7RH04bBD3vuMPYsEvi+xmvLswtna9UNfgHexUXvFXqNA== 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 4Lvc445qRxzm1m; Fri, 29 Jul 2022 18:48:52 +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 26TImqXm025952; Fri, 29 Jul 2022 18:48:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImq2M025951; Fri, 29 Jul 2022 18:48:52 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:52 GMT Message-Id: <202207291848.26TImq2M025951@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: 63e543311d0f - stable/12 - Adjust function definition in geom_subr.c to avoid clang 15 warnings 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: 63e543311d0f6a790ac56767338ebb941befc5b6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120533; 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=ROQPuhfz4leAS0oMJYCrvNXEibuuhohNRLBAiQUIRXo=; b=e7vJy2hKRW3a5/7GF6NlGWXPRpHA/pTtOCj2zOhrMY1AawDAdXnb07YN+UFpLMiOSVMhL5 TDYSj3cxPiN5r0GhlJmzGnNkakM+pprcTvXLjIqkbfFbos9ipFVlca0qxFglYU2vvkZ+VF jgIq0yR8ZVRoBDbxertEzb3EHhD7fC3ZtaZjUXZns5dBoOjvH1nT5BH/tVOT0ndupVQUUr UJMfz7jaYfgL/8dwPnV8DpsM2e/aoed2uz4PdGDb7ZypBxLwo38jBdxCSZvm/0xjn+FrS/ J7sIL6VxXrM80ncBVwfT03Ru1gnEEhAwOcMcR7cUXonc9CGwrhiSiM3NuKjdRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120533; a=rsa-sha256; cv=none; b=yWax1/GLlnbOturN9EK2eiqpcQepSDdLf5aUMDBtI383TvjUpg+Gwl84+woJ5qZgbufroh a789FrnasmuBrukCcMOb3/CnGsz0s3apUkQI1EBYqwSyD+1oI2HNcNRoz4xHeLoq3DjD5C ymBggMEhF8s0hE9nmHPya+0g6H01M7rTtWnYcM+orex7yDtyhgAAM1MoBmFsUmKfTTc8Wr AMc64CMvEwlWoLRAw9hWx0hpf2FNpfDoM7v5TlhnM8tR4TXOjV6yaFkxyH8ff+1xIJTMpW 9+0nEzQcp1FXdWp7Ig79I+hDJGMvOrU2PgtRM0ZwJc0+ne50X42akjKT9Tp2wg== 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=63e543311d0f6a790ac56767338ebb941befc5b6 commit 63e543311d0f6a790ac56767338ebb941befc5b6 Author: Dimitry Andric AuthorDate: 2022-07-26 14:01:04 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:45:14 +0000 Adjust function definition in geom_subr.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/geom/geom_subr.c:484:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_wither_washer() ^ void This is because g_wither_washer() 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 bfa9298765167bde0eacc538cc5a5bae4cdd7ed3) --- sys/geom/geom_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index ccc048fe865d..397d24ba8e13 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -447,7 +447,7 @@ g_wither_geom_close(struct g_geom *gp, int error) * withered bits at present. */ void -g_wither_washer() +g_wither_washer(void) { struct g_class *mp; struct g_geom *gp, *gp2;