Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Oct 2023 14:35:47 GMT
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7efbe98526f1 - stable/13 - teken: fix up unused func warnings
Message-ID:  <202310211435.39LEZl7C087604@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=7efbe98526f18317420785fd989f617c482846a7

commit 7efbe98526f18317420785fd989f617c482846a7
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-10-08 13:54:11 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
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)
 {
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310211435.39LEZl7C087604>