[FFmpeg-devel] [PATCH 01/16] avutil/buffer: add helper to allocate aligned memory
Rémi Denis-Courmont
remi at remlab.net
Sat Jun 1 09:59:18 EEST 2024
Le 1 juin 2024 00:06:49 GMT+03:00, averne <averne381 at gmail.com> a écrit :
>Le 30/05/2024 à 22:38, Rémi Denis-Courmont a écrit :
>> Le torstaina 30. toukokuuta 2024, 22.43.03 EEST averne a écrit :
>>> This is useful eg. for memory-mapped buffers that need page-aligned memory,
>>> when dealing with hardware devices
>>>
>>> Signed-off-by: averne <averne381 at gmail.com>
>>> ---
>> Invalid cast.
>>
>
>Neither gcc or clang emit a warning here, even on -Weverything.
>What would be your idea of a valid cast then? First cast to intptr_t,
>then void** ?
They don't warn because the explicit cast conventionally mutes the warning. Remove it and you'll get the warning.
More information about the ffmpeg-devel
mailing list