From nobody Sat Oct 21 14:29:36 2023 X-Original-To: dev-commits-src-branches@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 4SCP3h2zMqz4y58l; Sat, 21 Oct 2023 14:29: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 4SCP3h2QwGz4GFf; Sat, 21 Oct 2023 14:29:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697898576; 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=kIsq4dlBIZLbuzEhK+eZqo2pl6AMapOkfYBiiFmWLIc=; b=S2aevm/xU3o6nNIBLXaw99TT8XpWEuMJ6+b53glp1ENLX4w9oA1/npKOKx3tJCj+GR+yKT NYl6lG0yKCm1GgnkkLBJrDcp4i1bAqZygrqfA/H04Mkh1w2ofXmY+6Z9HosI0XqEp5QaTQ BzVBzgpEx7WyaQXTVVEbxi13W4czfa8tHhwEUuAxxtx2aPGdH4RtloUJl8Qp4QXfvBi7e4 WxubnODv5+Mfclui+9F+OpR9yap3RMMdyCk4HnOrY/yvg/gMu1l7wVHLSjhMbnTD9BnP0D b7xRFQZJxRLcZ18aVTa/27Lppd1V50/ktQ3W9nVUXUNBgaM4IaNAIMDvrNSxkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697898576; a=rsa-sha256; cv=none; b=Og6DcypjqAn4x1GrBE3qbJMtzcT+E+vXGF9c+JyXh+ISz9XqGCrYt0ReP7Ca6Hinr/1N2A yP9ugudYw7GxzyOL0Pzmf5yryeyd1uhA3s7ymVPpYtQ4LgGdu2LrDvf1aoleKgV4rYofwE hQtBCgpWAFv5aHfeceb2TVqiI9emQWOcJa1/pJ4KmT5AKz3/1sgCyx4U/iN9dzOR9PqzqH pDUw3ZQrbm4yC5fME/yy/3uNdx9OvEMj3xIi4J+sZCM8xdArRjlbfdlLl2nuYibR4np7NT SvGrDYDTxDauoKEVzI5MoK5Lh3gkMgrDplDt/Kbl3PVD5CR5TTJ8RGxO990s3w== 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=1697898576; 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=kIsq4dlBIZLbuzEhK+eZqo2pl6AMapOkfYBiiFmWLIc=; b=CXLS8FpShdiL8hYz11c+HnUc/yv0MOKxciwQIWoiFJbSyTXrwx8wGfUKscAQyqjSZrnmj9 OvCMg5gh+joD8xS37QPvB5gcNAFP4ZU+Beh3cYFu0d3rcRB2OkYkQXTRL4QGw438IWjw8P TQf4aichRC9fFy0Ydv5XzXrzXwxjgChsSBzgte/E+tl4jNsxkECfHKtEjEPlL+2IAw299/ f+oTYFnPzc5GC2OvB6rX1x089HB61ov6pISECYIDHIHmh/wt/Cx0P9QP9EVFKOTtK35bvG XHo/OgJ8fnCLSwYDqyTwO/mdLhQw0wtaecqRTsWuq///KxidJrK++DLE6V5JUg== 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 4SCP3h1Qnyz4S4; Sat, 21 Oct 2023 14:29: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 39LETa3c071677; Sat, 21 Oct 2023 14:29:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39LETaXu071674; Sat, 21 Oct 2023 14:29:36 GMT (envelope-from git) Date: Sat, 21 Oct 2023 14:29:36 GMT Message-Id: <202310211429.39LETaXu071674@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: d25f8c1bdcdc - stable/14 - teken: fix up unused func warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d25f8c1bdcdcadf17c542dc457b13220cb20d768 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=d25f8c1bdcdcadf17c542dc457b13220cb20d768 commit d25f8c1bdcdcadf17c542dc457b13220cb20d768 Author: Mateusz Guzik AuthorDate: 2023-10-08 13:54:11 +0000 Commit: Christos Margiolis CommitDate: 2023-10-21 14:28:35 +0000 teken: fix up unused func warnings Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 4b9aa38ef0e5bedcdd90b6627cc1c215037a1121) --- 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) {