[PATCH 06/13] manual: Allow getsubopt example to compile with GCC 15.
Sam James
sam@gentoo.org
Tue Sep 30 08:05:08 GMT 2025
Collin Funk <collin.funk1@gmail.com> writes:
> 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.
Yeah, the patch is (of course) correct. I only bothered to say this in
case it comes up in other projects.
>
> Collin
sam
More information about the Libc-alpha
mailing list