Building 1.12.0 with glib-2.43 has the following const warnings.

Rudi Heitbaum rudi at heitbaum.com
Thu Jan 29 23:00:02 CET 2026


I was unable to register to the bug tracker. So reporting here.

../../src/misc.c: In function '_gcry_log_printsxp':../../src/misc.c:439:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  439 |           pend = strchr (p, '\n');
     |                ^

../../tests/testdrv.c: In function 'my_spawn':
../../tests/testdrv.c:533:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  533 |   arg_list[0] = strrchr (pgmname, '/');
      |               ^

Ref: https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260129/d6c63d3a/attachment.html>


More information about the Gnupg-devel mailing list