]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix warnings with gcc 15 and glibc 2.43.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Jan 2026 03:51:32 +0000 (04:51 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Jan 2026 03:51:32 +0000 (04:51 +0100)
* libtextstyle/gnulib-local/lib/glib/gstrfuncs.in.h (g_strstr_len): Change
return type to 'const gchar *'.
* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c (g_strstr_len): Likewise.
* libtextstyle/gnulib-local/lib/libcroco/cr-rgb.c (cr_rgb_set_from_name): Change
type of 'result'.
* gettext-tools/src/cldr-plurals.c (extract_rules): Cast the sb_xcontents_c
result to 'char *'.

gettext-tools/src/cldr-plurals.c
libtextstyle/gnulib-local/lib/glib/gstrfuncs.c
libtextstyle/gnulib-local/lib/glib/gstrfuncs.in.h
libtextstyle/gnulib-local/lib/libcroco/cr-rgb.c

index e5bf06f4344ac9d20e5a332baf061501902fa188..da4eccf18fbadcf090464a2da4b73f44e0279d76 100644 (file)
@@ -158,7 +158,7 @@ extract_rules (FILE *fp,
 
   {
     /* Scrub the last semicolon, if any.  */
-    char *p = strrchr (sb_xcontents_c (&buffer), ';');
+    char *p = strrchr ((char *) sb_xcontents_c (&buffer), ';');
     if (p)
       *p = '\0';
   }
index e66e03176fc5d28612be36825e17b926820ef1ac..d6bd1cc429055cc6e8a580c5087310fc96dce379 100644 (file)
@@ -1,5 +1,5 @@
 /* GLIB - Library of useful routines for C programming
- * Copyright (C) 2006-2024 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2026 Free Software Foundation, Inc.
  *
  * This file is not part of the GNU gettext program, but is used with
  * GNU gettext.
@@ -2610,7 +2610,7 @@ g_strjoin (const gchar  *separator,
  * Return value: a pointer to the found occurrence, or
  *    %NULL if not found.
  **/
-gchar *
+const gchar *
 g_strstr_len (const gchar *haystack,
              gssize       haystack_len,
              const gchar *needle)
index 15c96a020f041a9e5a3ee3b268700dab8b139ae0..a5cb2cd9a6eec44dbbac3d242f493b5f4cd8a99e 100644 (file)
@@ -1,5 +1,5 @@
 /* GLIB - Library of useful routines for C programming
- * Copyright (C) 2006-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2026 Free Software Foundation, Inc.
  *
  * This file is not part of the GNU gettext program, but is used with
  * GNU gettext.
@@ -124,7 +124,7 @@ gsize                     g_strlcat        (gchar        *dest,
                                        const gchar  *src,
                                        gsize         dest_size);
 #endif
-gchar *               g_strstr_len     (const gchar  *haystack,
+const gchar *         g_strstr_len     (const gchar  *haystack,
                                        gssize        haystack_len,
                                        const gchar  *needle);
 #if 0
index c02387fe15736d23b0ae998a0ebf78482db72647..62fa584c107be90ccff524c238b0421a21a6c833 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
 
 /* libcroco - Library for parsing and applying CSS
- * Copyright (C) 2006-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2026 Free Software Foundation, Inc.
  *
  * This file is not part of the GNU gettext program, but is used with
  * GNU gettext.
@@ -483,7 +483,7 @@ enum CRStatus
 cr_rgb_set_from_name (CRRgb * a_this, const guchar * a_color_name)
 {
         enum CRStatus status = CR_OK;
-        CRRgb *result;
+        CRRgb const *result;
 
         g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR);