Building 1.12.0 with glib-2.43 has the following const warnings.
Rudi Heitbaum via Gnupg-devel <[email protected]> Thu, 29 Jan 2026 22:00:02 +0000
| Newsgroups | gmane.comp.encryption.gpg.devel |
|---|---|
| Message-ID | <SYYP282MB0960AE540DE40D3D1B692BC5B49EA@SYYP282MB0960.AUSP282.PROD.OUTLOOK.COM> |
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.
_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel