Le 4 juin 2024 00:56:21 GMT+03:00, Andreas Rheinhardt 
<andreas.rheinha...@outlook.com> a écrit :
>Rémi Denis-Courmont:
>> Le maanantaina 3. kesäkuuta 2024, 22.29.13 EEST marcus a écrit :
>>>> Bogus cast / aliasing violation.
>>>
>>> I thought qualifiers don't affect aliasing rules in C. Am I wrong?
>> 
>> If they didn't, the compiler wouldn't warn about incompatible pointer type 
>> conversions in the absence of the explict cast.
>> 
>
>Wrong: The conversion uint8_t*const*->const uint8_t * const* is safe

Nope. The pointer types have the same representation and in practice neither 
LLVM IR nor GIMPLE can differentiate them, but they are not compatible 
according to spec (C11 §6.7.6.1).

You can convert `const uint8_t **` to `const uint8_t *const *`, for sure (C11 
§6.3.2.3), but that's not the same conversion
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to