From nobody Tue Jul 26 18:00:31 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 4Lsl7h4TDZz4XgK9; Tue, 26 Jul 2022 18:00:32 +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 4Lsl7h1yCVz3k0p; Tue, 26 Jul 2022 18:00:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858432; 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=mQJV1N/6Qjq/bWDeQESxuWAyhhLz8Ya5MVa9IZ+9GGA=; b=h6C/xg2NHhPNu5p6Ike07rToq2nDWp/1gK4Kb941CPrWb+7rTLXQHb+Cg2tpt48iwt+mHT EfmuTcBoBieaD1B2V4fn8MwrBQddN7mCj9NKDHCzkXQgDgURhEiiGDyBOcMXvGeZriKiku K8VB6rcAzWS/Vjd2ZY4dNt7WBHbhXCJABogN0x3cuNPCS9zdqy3tA9iIPH4fv7M5rXMGFy 9dMqdsrFRipwwfM1r8fQ56kGK1XGYTxaz/lcd6bvWHgRPlzs4l8bFmrLL22QDZUEPavu5K GIFQ+VMjRq1VnpOGn2kU6ro4PPvD63oTd9Dfqiro9R7GLVO9oQtujDO3GRA3aA== 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 4Lsl7h0n74zm4Z; Tue, 26 Jul 2022 18:00:32 +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 26QI0VHg005846; Tue, 26 Jul 2022 18:00:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QI0VRm005845; Tue, 26 Jul 2022 18:00:31 GMT (envelope-from git) Date: Tue, 26 Jul 2022 18:00:31 GMT Message-Id: <202207261800.26QI0VRm005845@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: ac3153434fcc - main - Adjust function definitions in geom_event.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: ac3153434fcc3ddcbb47c7f397a1bc34fd0e0dcb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858432; 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=mQJV1N/6Qjq/bWDeQESxuWAyhhLz8Ya5MVa9IZ+9GGA=; b=PKTBN/Xv4R9Z3gZfffpDh73NrX5NgdR0Y1GqoZGNKFXAFPtwTcgBj8GCyxsETbf9BAD345 v24X3sRxIZIH/Ja+nEI9Z9B81z8MqbsfaijRdO4kiI24EWzX8G6Ivzeh8ujBx0FV2IptrW s/5n7oaQSmw6KXwgerEsxDNxoV2ACws9Uk0ZzuyVK5AVNBXKK6k4Zphzg0lNJEot1CYS++ SDiWcmkpTbMnWWZVb+tHbOdhxlvOZzk+KPu2GnEUliPh8M+Boutn3w7HNM06QxZI3f2LW3 bWxBJFN92BQaFgw2GBI1lZgW6QXn/8UnkAPz9yQ2PMfOrLhdR6/QAIyZfsiMbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658858432; a=rsa-sha256; cv=none; b=gnPtHGh1yvwGB53O/6boP1PSCceaFb+zTS4T4o724PQJqJYdZlNXJOqwG3lLnCgVMIlTTA SCj/7q8cKWEIKHCvT1WM5kYESSWJMW/1xcQeVWfjnDSdK2jOFjkz7UMzevNH3HHprLt6WH hq8HjC7DeNo2H0ZMuqOZOUzddYAJHOeeXEShKQW3UXCxYjsihKZVt4T52ppBuB9VHPPcq8 g7m9MJkY36SYCBiwXo12A5NGyy4hCld+HKWAnKxEMK8PaiJHWbvxJHSv8e1Ey+62vNZIH3 7aWqDOm95tFDZ3MKwgTkn64PeU5aa88lp0pbrZl/KgMKh7WBEGbIKLT4jK4zkw== 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=ac3153434fcc3ddcbb47c7f397a1bc34fd0e0dcb commit ac3153434fcc3ddcbb47c7f397a1bc34fd0e0dcb Author: Dimitry Andric AuthorDate: 2022-07-26 13:58:31 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 17:59:56 +0000 Adjust function definitions in geom_event.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/geom/geom_event.c:261:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_run_events() ^ void sys/geom/geom_event.c:405:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_do_wither() ^ void sys/geom/geom_event.c:449:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_event_init() ^ void This is because g_run_events(), g_do_wither(), and g_event_init() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/geom/geom_event.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 359c7c984f07..cecd7fe349f6 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -258,7 +258,7 @@ one_event(void) } void -g_run_events() +g_run_events(void) { for (;;) { @@ -402,7 +402,7 @@ g_post_event(g_event_t *func, void *arg, int flag, ...) } void -g_do_wither() +g_do_wither(void) { mtx_lock(&g_eventlock); @@ -446,7 +446,7 @@ g_waitfor_event(g_event_t *func, void *arg, int flag, ...) } void -g_event_init() +g_event_init(void) { mtx_init(&g_eventlock, "GEOM orphanage", NULL, MTX_DEF);