On Sat, Nov 24, 2018 at 01:02:02PM -0800, Mark Harris wrote:
> The alloc_size attribute is valid only on functions that return a
> pointer.  GCC 9 (not yet released) warns about invalid usage:
> 
> ./libavutil/mem.h:342:1: warning: 'alloc_size' attribute ignored on a 
> function returning int' [-Wattributes]
>   342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, 
> size_t size);
>       | ^~~~~~~~~~~~~

Is the attribute also useless on all other compilers ?

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to