Hi Werner,

Understood and agree.

I have proposed the 3 patches that address the warnings that should be fully 
backward compatible. I skipped fixing the the 'const' qualifier in 
tests/testdrv.c - given it is a test and - that the local char* arg_list is 
used for both const char and char pointers.

Hope these are acceptable.

Thanks
Rudi

________________________________
From: Werner Koch
Sent: Friday, January 30, 2026 8:32 PM
To: Rudi Heitbaum via Gnupg-devel
Cc: Rudi Heitbaum
Subject: Re: Building 1.12.0 with glib-2.43 has the following const warnings.

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

Reply via email to