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

Werner Koch via Gnupg-devel <[email protected]> Fri, 30 Jan 2026 10:32:05 +0100
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <[email protected]>
Hi!

On Thu, 29 Jan 2026 22:00, Rudi Heitbaum said:

> 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

“Breaking C for Fun and Profit”

Actually this is a useful thing but this and the new keywords break all
kind of existing code.  We can't change everything for the benefit of a
new compiler and with that break bulding the software on dozens of other
platforms.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein

_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
openpgp-digital-signature.asc (application/pgp-signature, 284 B)
-----BEGIN PGP SIGNATURE-----

iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaXx6lhsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQerOgAQCG
1VZGmkgVid7XRXlMwbJPiptwL5aLygj/F6/03uQzdAEAqZvIF2Tcl+gdXDTVQXhW
a05ButO9iHWJzrrgJu19zQk=
=Jgcx
-----END PGP SIGNATURE-----