Accidentally replied to sender instead of to list. Apologies again.
> Chris Pressey wrote:
>
>> SUS is idiotic here.
>>
>> Would it be possible to apply this but only under #ifndef
>> POSIXLY_CORRECT
>> or something?
>>
>>
>
> I agree. Adding a const attribute to system interfaces will _never_
> break calling code, since it simply advertises a guarantee that the
> code will not change what is supplied. The code either does or it
> doesn't. If it truly doesn't, then why not advertise it as such? It
> can hardly be argued as "breaking" the POSIX interface. There is no
> real hope of making all of userland truly WARNS=6 compliant without it.
>
>