https://gcc.gnu.org/g:c8cb5f1248165950c7f8f4b34c7676940bdd1baa

commit r16-6172-gc8cb5f1248165950c7f8f4b34c7676940bdd1baa
Author: Pietro Monteiro <[email protected]>
Date:   Tue Dec 16 07:48:06 2025 -0500

    libga68: Make _libga68_u32_cmp static
    
    _libga68_u32_cmp is only used in the same translation unit, so make it
    static.
    
    libga68/ChangeLog:
    
            * ga68-unistr.c (_libga68_u32_cmp): Add `static' specifier.
            * ga68.h (_libga68_u32_cmp): Remove prototype.

Diff:
---
 libga68/ga68-unistr.c | 2 +-
 libga68/ga68.h        | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/libga68/ga68-unistr.c b/libga68/ga68-unistr.c
index 7f2cb97de70b..1b6f46afee39 100644
--- a/libga68/ga68-unistr.c
+++ b/libga68/ga68-unistr.c
@@ -56,7 +56,7 @@
 /* Compare two UCS-4 strings of same lenght, lexicographically.
    Return -1, 0 or 1.  */
 
-int
+static int
 _libga68_u32_cmp (const uint32_t *s1, size_t stride1,
                  const uint32_t *s2, size_t stride2,
                  size_t n)
diff --git a/libga68/ga68.h b/libga68/ga68.h
index 764ea2b3ce79..ed8b71fce79e 100644
--- a/libga68/ga68.h
+++ b/libga68/ga68.h
@@ -104,9 +104,6 @@ long long int _libga68_posixlseek (int fd, long long int 
offset, int whence);
 
 /* ga68-unistr.c  */
 
-int _libga68_u32_cmp (const uint32_t *s1, size_t stride1,
-                     const uint32_t *s2, size_t stride2,
-                     size_t n);
 int _libga68_u32_cmp2 (const uint32_t *s1, size_t n1, size_t stride1,
                       const uint32_t *s2, size_t n2, size_t stride2);
 int _libga68_u8_uctomb (uint8_t *s, uint32_t uc, ptrdiff_t n);

Reply via email to