From nobody Sun Jul 24 11:01:40 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 4LrKxJ3wj0z4XX7C; Sun, 24 Jul 2022 11:01:40 +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 4LrKxJ3Q4nz3Z6n; Sun, 24 Jul 2022 11:01:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660500; 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=cLZioIwanb1ty8keYMSf+66lERTk808D9HL/3d2D+9I=; b=bn4wLrXaHx7hdoMwXzFrGwM5934X/LoylXut0Pia7Wz10/a6ZbXYk8fPk1gTtue7VLG9rT wzaiC0ukr3cfurHf8OEvwDdjnwYUv5jTDLvWU9TC3IZnnCWJV/2Iu6lYvcRNptMmBbLTgA /mqngfm2vuNYSzuelQ4EeGSvYBq0JGm0598nYlNhLDFiCU1SLiT4v12IOFg/sw+O+ErKfB 08II1e/ux2yHDyPbN3gIyjw21rAEkxRynvhaS6aPEPqW7X2k/JXJlBMGcD8RJ2le4ASSZy Lulj5oS9b2aRpunICQIf3rAW7wyKtIJw0KVRirCgIIZDReKIbt8PHHhMl2GN+g== 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 4LrKxJ2FpSzGFG; Sun, 24 Jul 2022 11:01:40 +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 26OB1eUf040595; Sun, 24 Jul 2022 11:01:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1eJr040594; Sun, 24 Jul 2022 11:01:40 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:40 GMT Message-Id: <202207241101.26OB1eJr040594@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: 56b06ff9f538 - stable/13 - Adjust vt_mouse_paste() 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/13 X-Git-Reftype: branch X-Git-Commit: 56b06ff9f538265cb3415c8e2b0d54b16a6e32fe Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660500; 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=cLZioIwanb1ty8keYMSf+66lERTk808D9HL/3d2D+9I=; b=Ei/opbz21lA3N/d3PORFYny9rlL4eUaa2ho5G4O6uclIFaADrg0T8DOPduSudM2qQUcneq 9Ns3X2Ke5ebC6yVX5J27/S5W+k/kf/d5A8GeG2magplVYpJASycLYTgYJMnJkNUMyNzmN/ bkcH70RoIZHFLexi7owF7PJb5pnXOjCFsWMEHAIV60/qauP4oKBXqQvr8y9LOzr89XArgz E6bNTF3+d5m/rkyBEClFC2HdTU+CKqi/6DkCSi4tcQcFepFdG0x0L5248YpHGwE1liAlEo +9LP9Ck8Un/JNA5MC9RAEOU83aVE3bLLV0o6mAx4y+5kY/9JlSHjpn+8s4us5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660500; a=rsa-sha256; cv=none; b=Q8X3vFMu0HlWK3KLhpc0U5C8WQ//prVBJTIWNAeiEE5umOGmmTk92gMW2+L+B/PkQg4L3I RuZK7auoZYK1/ebIcaypLryVqNbBR8rakMMEbTIZ58909kVWNVPuAKVf4PfhAdQSrrrohm SwlMKV9gPO8y3lCvwFwg4y5SD4k90NtRQE1qpcC5ZHGztN45/rM+8Rl95MyrsD5a9IquzY HJrIV/5cf2cdd93r3HJ5VZB/tmU8LWupO3LSElGwID8fef5zLyLcvNe3T4yLoGH498pANR 4h28nSAgZHCWPx1siIhZcJOiCOh5J91JmBJyg3RNI/9jQwoWGRHpMHtt2FfIZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=56b06ff9f538265cb3415c8e2b0d54b16a6e32fe commit 56b06ff9f538265cb3415c8e2b0d54b16a6e32fe Author: Dimitry Andric AuthorDate: 2022-07-21 20:10:22 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:06 +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 (cherry picked from commit b77a5e5f5835620ce27114fad9a211d960ed60aa) --- 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 27cbe5ad8294..85ab3d4cd73e 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;