From nobody Sun Oct 08 13:54:36 2023 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 4S3NvJ35sfz4wmKn; Sun, 8 Oct 2023 13:54:36 +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 4S3NvJ2cnlz4Y7l; Sun, 8 Oct 2023 13:54:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696773276; 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=gNreMtFYKoP0vX7BNoycGycFmmxmQ1lHuhCwL2e+cf4=; b=M+IRa6s2Uu1tQ3GpmYqB6ZU5tsKJcdM+FcrN1Uejzju5u/yVFptYi9UNVt0vOR0wMOgd1Z SIIlK1NKsniXb8GiUM6c89VnRfnD0yMuZGNJU6lBgTQNGNPYG5dKzfFHxdaW7Bn4WoLky9 jZB/axKUNm/2wopBL8EMYm1CnC03l8Ru1OB2BEM0Dks7hcz/0ZryA04MFo+pUrfyRV/96c CVTO9qhts1atgzhbgEUnyzjt5XZ45MgXGSNEI/I4IwkRemh44Gv653pZspVEd0iXrBQWal Linp4cxCS0G2P4qpKTm+KfgCUXUcwQTbNSiNfW9gsw/MZ44Rpv6v8I4bgimW7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696773276; a=rsa-sha256; cv=none; b=MqoiZOB/FXBCRYnzXTFyOvbIhw2+P/5Mh7fzVsAfmA6A8reX7gkaahFKCFNRPAOCqEjXxA m97Yh38+7I/UFILChvsGT2RqFgzQZ3wWQX5yDhc7eH32OqUAMjBPPneK8hEcRtxOlcYlBn rVrWqiTXOMxp+S1FFIcqQ647ioeNAjmr558tPKu9tM88RRCi1q5OBH0kwF87oISPBRyaKf XgrvObcH+A5o8u3dkWQoHSGD9np1YBKNeBDb3qHoanonohhl5lkEj3wAE+5uFPtk0F8lRb VPH43FeCaVAofXopY5j4iVO30ZDSSJvfVZAF7laXnktzvqBpkiPMOGVfMCJfBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696773276; 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=gNreMtFYKoP0vX7BNoycGycFmmxmQ1lHuhCwL2e+cf4=; b=TwIS68pWPlIXu2g/J/w9NwRqxz3D7n2Z5dQvirnz+VYfy9JA2gURGgXZoX1AHG881FmpUY nvN/W4L1IjiL7KF36Ut3AKDxMVxHMQZHGPbRFnatg3+CPV983zZmhCc5XhJ46GEtcO+lqa ORWKNL6CUt4/d/Rg8ojeAll6OO3Pl3/JjegcInsBOhFkBCLSNbIeCs48THx6CicT3ll6GA Sfd+JBH1uQ/ZSZGopbhfB+SiKf9tjfi+Qtzw+tzwWxHmuOKvMamYQL3KznhfV6BCXtO48p 9IH7yxaXJ4k7vojop9xdwmjuquEAcEcJPvDUYp1J5oOd4lPhU+FAQoXrYpg6DQ== 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 4S3NvJ1gRtz1cf; Sun, 8 Oct 2023 13:54:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 398Dsab7038727; Sun, 8 Oct 2023 13:54:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 398DsaSl038724; Sun, 8 Oct 2023 13:54:36 GMT (envelope-from git) Date: Sun, 8 Oct 2023 13:54:36 GMT Message-Id: <202310081354.398DsaSl038724@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 4b9aa38ef0e5 - main - teken: fix up unused func 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b9aa38ef0e5bedcdd90b6627cc1c215037a1121 Auto-Submitted: auto-generated The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=4b9aa38ef0e5bedcdd90b6627cc1c215037a1121 commit 4b9aa38ef0e5bedcdd90b6627cc1c215037a1121 Author: Mateusz Guzik AuthorDate: 2023-10-08 13:54:11 +0000 Commit: Mateusz Guzik CommitDate: 2023-10-08 13:54:11 +0000 teken: fix up unused func warnings Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/teken/teken_wcwidth.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/teken/teken_wcwidth.h b/sys/teken/teken_wcwidth.h index bc992e1ef5d8..bc40c23a6eb7 100644 --- a/sys/teken/teken_wcwidth.h +++ b/sys/teken/teken_wcwidth.h @@ -16,7 +16,7 @@ struct interval { }; /* auxiliary function for binary search in interval table */ -static int bisearch(teken_char_t ucs, const struct interval *table, int max) { +static inline int bisearch(teken_char_t ucs, const struct interval *table, int max) { int min = 0; int mid; @@ -35,7 +35,7 @@ static int bisearch(teken_char_t ucs, const struct interval *table, int max) { return 0; } -static int teken_wcwidth(teken_char_t ucs) +static inline int teken_wcwidth(teken_char_t ucs) { /* sorted list of non-overlapping intervals of non-spacing characters */ /* generated by "uniset +cat=Me +cat=Mn +cat=Cf -00AD +1160-11FF +200B c" */ @@ -124,7 +124,7 @@ static int teken_wcwidth(teken_char_t ucs) * https://datatracker.ietf.org/doc/html/rfc3629#section-3 . The function * expects the 'bytes' array to start with the leading character. */ -static teken_char_t +static inline teken_char_t teken_utf8_bytes_to_codepoint(uint8_t bytes[4], int nbytes) {