From nobody Sat Oct 21 14:35:47 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 4SCPBr0jm0z4y5mf; Sat, 21 Oct 2023 14:35:48 +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 4SCPBq6vMxz4Hx7; Sat, 21 Oct 2023 14:35:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697898948; 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=mSo19iyFzBc7c5If8d22j28bcl0g+Fpvf4a02YvChKc=; b=l+xaMIIgkRE+K/SHkdQ3uLMzXt2CTJR5mii9xyCMrHKfao5hjoz7IRvi1OVtyrTbanagXI WiO5wDla8aEEOHkKzs9qbHbzHiNQUVl7P6BNIMJrSJb1wmPegZjx37qB/yVDW4PmdKBS81 neIHLQL8acOnKGvd82yiyaJA3yWOwxK+GvmWusY+uLrKF/2bjAW+x5nbYO68zoBCnrpE8K Q8bGopFEcEtOmQbt48BaEiPW3Er9ajoEIpF7TzK5mdlH2ktx1Sztok/Hraz1nLvuP+aN5U 54XG1TFRpD1siszwE0rGPnfFKzbyl4iZs/ZhV0U+2By7yALPcgvxxNrwLtgBzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697898948; a=rsa-sha256; cv=none; b=P+7JmESrO/c8eJFqnejQiufh80jDZt8lXKVZy2k4uPIPdQfTTix024GFmCEd4ACyizVk6Y zsxf7OQDvqAHiFnJY04kVZ4sWCuBumcKPDYCjSryrkip3vBV+QauWHtstOqR+iAOgID7Kz zdnk9SZMmyTeMjjNYnrtrMKkyeqO7gVRZazKwxgYmOqnpXGxdcTVYx7BmzmwtDWgn5z68X iZb4aggbETVYMOWXjECcLKRCzxLKyg3qih7LWC4rpAozwfOEQz7XQgrYREWd1H1dvRA9T5 88I6q+G4jXLeBSQcyha7nnjQMAXpXwE/hxcsv7W7TcTm0XkAvzFpTLPvWgL5fw== 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=1697898948; 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=mSo19iyFzBc7c5If8d22j28bcl0g+Fpvf4a02YvChKc=; b=mxSY7c4xhRO4SayraXug3MIKmjgaII0D9cROHRnlhLUWY5oWJxeOcdUaT1jpXnn50qzo/R y/FMhJBwigO6vvTQSIZP8JrRP8PjJxX8dnRoj0+A2/ssV7/CFKx0QcDB3TIjU4wl2GsB4A o8tzc27KtLWk4RjrWY4PnEAIP0UPcQIMZe3orX/JXY4djSBxNTN8bCMqrEwLdCcfyIQ75P CJs5PDHKTRvtvCcA7ymqVTYKqv6xyrLK1LZAoBRJi1UZ65CSr5D2vEx9KpHmpERVZeN869 PvL1aISPVLVpzifp3j01AsKmaJ1PWsLLu8bXTp06L30HBVqfRGlQAtzgVEbJbA== 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 4SCPBq5pbRz4C1; Sat, 21 Oct 2023 14:35:47 +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 39LEZlnV087607; Sat, 21 Oct 2023 14:35:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39LEZl7C087604; Sat, 21 Oct 2023 14:35:47 GMT (envelope-from git) Date: Sat, 21 Oct 2023 14:35:47 GMT Message-Id: <202310211435.39LEZl7C087604@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: 7efbe98526f1 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 7efbe98526f18317420785fd989f617c482846a7 Auto-Submitted: auto-generated The branch stable/13 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=7efbe98526f18317420785fd989f617c482846a7 commit 7efbe98526f18317420785fd989f617c482846a7 Author: Mateusz Guzik AuthorDate: 2023-10-08 13:54:11 +0000 Commit: Christos Margiolis CommitDate: 2023-10-21 14:34:22 +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) {