From nobody Thu Jul 21 20:12:10 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 4LpkHv0xrJz4XQpR; Thu, 21 Jul 2022 20:12:11 +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 4LpkHv0TVsz3hnW; Thu, 21 Jul 2022 20:12:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658434331; 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=wPbfDB+zTxlIY/bP2IIXZa/giqNDp+cSTszdVG35MIE=; b=YNc8L0yEVU39VuOIcm8sMoM1eo056vPFJfkx1ETAos5LWDghSYZ8N+7d3XBBkjHzgrEVVh HmKSTjFKgJ+jVAbZaCxFr69dfCNV+4x4KV6LA6De0Z3JB8Qee1ntTsMzrHU9oczRUJcgip CXjfMRm6F8/L7C3qW4dGf4R0kk8kaktFTc6iTPwCnCvWWi9KgScXOg4pcxTLuBSBAfY2ey Zz4Nmw56dGlP+d+td+PgXy31oX9ltXAGEoy1qu0yHyUQMJa8J/y+ICfBAQxQX7qx2Z2Fn2 uHzVIuKFldK6/htVksL+MDE2/6KFjTEylqKMpwKpgNXmMiEdp3TMZRGqnLWgbg== 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 4LpkHt6hznzZp2; Thu, 21 Jul 2022 20:12:10 +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 26LKCAv0035309; Thu, 21 Jul 2022 20:12:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LKCARL035308; Thu, 21 Jul 2022 20:12:10 GMT (envelope-from git) Date: Thu, 21 Jul 2022 20:12:10 GMT Message-Id: <202207212012.26LKCARL035308@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: b77a5e5f5835 - main - Adjust vt_mouse_paste() definition to avoid clang 15 warning 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: b77a5e5f5835620ce27114fad9a211d960ed60aa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658434331; 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=wPbfDB+zTxlIY/bP2IIXZa/giqNDp+cSTszdVG35MIE=; b=NCoeuirO1ZkXWNCxodvyQdObubjAIkHkA8j2UuU6wrpU2GBDwVgMp8Td8J/32acK47SR5i 2z0AMW4Y5dguIeIR7jas+RKcecwHEDVUHNSIZnVhOZt38VUtFA2xyMASYAV/DyOFpHa856 TgvBbD8TC45mi/DRmL2Quru/BDfYBSQogyc4W9ahyVESCju5Qgz+MIWbvIdyvaRVIOIVwx R3Jq6jruzjrb5xmtYqEUdUUvl0elkrH63+t8J5TD+6CrkYYGnhQTQIVgTmw8XFSdV9zC4L 4V6/Kh8/0qEYbtGc62jk5vM1alIvyIyiz/bCAqgcyfpxKTE4Pg7zpbl8aj/EPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658434331; a=rsa-sha256; cv=none; b=ZyR+zVfuKD3PNQWGbm+vPDtyftTpnOE643RTLJJb67o2X84+HQN6qLzBwqyvIo1OCQgBoZ N3wDGdp8hEbzynwNSVodVxfKEWsENueC6SkFVzZkcNk1litFdyzI4vYmKQkQFWK9qEh8YP FbH1p80PdOst9AVR3p5uoD1Wc3cXjHS14vNe7dDOPWA6T22R7OPKf7P2rjsCcdYXyFhuAC vwViZwsBvza8FORSKCxEuIR1qehMEBgrobIxyYw0G7+E1sYNvA2XVyGvtPxXLazDYEl0Qf mxEapkqrKjkjP+9omcedMIq/OZqeArwpneblGcHoV6Gu3XANvAyxyRYqho+2HQ== 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=b77a5e5f5835620ce27114fad9a211d960ed60aa commit b77a5e5f5835620ce27114fad9a211d960ed60aa Author: Dimitry Andric AuthorDate: 2022-07-21 20:10:22 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 20:12:01 +0000 Adjust vt_mouse_paste() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/vt/vt_core.c:2129:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] vt_mouse_paste() ^ void This is because vt_mouse_paste() 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/dev/vt/vt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 588ebbcbc4e9..b95ff1ef677e 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -2126,7 +2126,7 @@ vt_mouse_terminput(struct vt_device *vd, int type, int x, int y, int event, } static void -vt_mouse_paste() +vt_mouse_paste(void) { term_char_t *buf; int i, len;