[PATCH 06/13] manual: Allow getsubopt example to compile with GCC 15.
Collin Funk
collin.funk1@gmail.com
Tue Sep 30 00:51:11 GMT 2025
Sam James <sam@gentoo.org> writes:
> Collin Funk <collin.funk1@gmail.com> writes:
>
>> GCC 15 turned -Wincompatible-pointer-types into a compiler error instead
>> of a warning by default. This patch prevents the following error:
>
> We made those changes in GCC 14. What did change in 15 is that you see
> this "more often" because we changed the default -std= to gnu23. But
> that doesn't apply here.
Oops, sorry. Bad memory on my part.
I still think the change is good since I think the examples should work
with modern compilers. But the pushed commit message is a bit
misleading.
Collin
More information about the Libc-alpha
mailing list